Commit Graph

  • b9dec2344e Added timeout to plex requests and include error in error message when unable to search KevinMidboe 2019-06-04 23:53:54 +02:00
  • 476a34fb69 Changed the order of execution between getting tmdb movie and searching plex for it. Now we await tmdb movie and then check if exists in plex. This is better when we miss plex request KevinMidboe 2019-06-04 23:47:10 +02:00
  • e3ed08e8dd Now a plex ip address is dynamically passed into the plexrepository, fetched from the config KevinMidboe 2019-06-04 23:45:22 +02:00
  • 70f6497404 All converter function from tmdb to movie, show and person takes optional cast object and maps to response KevinMidboe 2019-06-04 23:35:21 +02:00
  • 99bab3fb73 Movie and show can also return credits for a item. Enabled by query parameter credits=true KevinMidboe 2019-06-04 23:32:38 +02:00
  • e6796aff8b Hotfix 🧯 for returning new poster object variable KevinMidboe 2019-06-04 21:41:10 +02:00
  • 1f9dc067e6 Plex params are now parsed with URI encoder. Kevin Midboe 2019-04-10 22:22:52 +02:00
  • 4eaa60b044 fix: seasoned_api/package.json to reduce vulnerabilities #113 snyk-bot 2018-12-13 03:19:03 +00:00
  • 7db8f752c5 fix: seasoned_api/package.json to reduce vulnerabilities snyk-bot 2018-12-08 03:59:04 +00:00
  • 784aa2616a Fetchall gets docstring KevinMidboe 2018-11-12 01:20:18 +01:00
  • 7cb55ce054 Fetchall uses promises smarter. Now the utils functions also return promises to be able to nicely chain the steps a request needs to go through. Promise all lets us wait for all items return in the map function. Without the map function would return immidiately and resolve before the map operation completed. KevinMidboe 2018-11-10 20:26:28 +01:00
  • 87eb6de802 🔨 test now requests with id in body not in query params. KevinMidboe 2018-11-10 01:57:19 +01:00
  • 840816c930 request returns all requested items. Optional sort, query and filter params. KevinMidboe 2018-11-10 01:50:24 +01:00
  • 91d238de7c Request id is now passed as body param. Database default timestamp value changed to epoch time. KevinMidboe 2018-11-09 22:13:00 +01:00
  • 0ac17d3d0a Removed unused const declaration. KevinMidboe 2018-11-01 00:24:47 +01:00
  • 87c76e3f1d Tests now suppoer the new list endpoints. Also updated response for interstellar query (movieInfo). KevinMidboe 2018-11-01 00:18:54 +01:00
  • e64c4d5d01 Lists are now reachable by movie or show / listname. Endpoints added & removed outdated comments. KevinMidboe 2018-11-01 00:17:51 +01:00
  • 22e57c03de Controller for movie and shows. Each have multiple small export functions; one for each list search type KevinMidboe 2018-11-01 00:16:56 +01:00
  • d80386da40 Implementing lists lookups for movie and shows. Add new cachetags for the lists & created a helper function for returning response with convertFunction as parameter. KevinMidboe 2018-11-01 00:15:49 +01:00
  • e7c66af3f6 Merge branch 'master' into api/v2 Kevin 2018-10-30 21:02:47 +01:00
  • 8ece7b84c4 test configuration also gets plex ip parameter. KevinMidboe 2018-10-30 20:38:05 +01:00
  • 4250b1bd17 request endpoint finds type by body not query. Better error handling on what goes wrong if incorrect type or missing body parameter. KevinMidboe 2018-10-30 20:34:26 +01:00
  • 7e46d32e30 More unit tests for checking correct definition of movie. Changed some test to match update functions in tmdb. KevinMidboe 2018-10-30 20:32:55 +01:00
  • 5a48158f07 Request now happens at /request with id parameter and query for type selection. Only allows movie or show type and is static set in the controller. AddRequest adds tmdb item to database with time of request. KevinMidboe 2018-10-30 19:20:52 +01:00
  • 161a466ab7 Rewrote how local plex library is indexed and what it returns. After searching plex the response is separated into three classes by types (movie, show & episode). Plex also has a function for inputing a (tmdb)movie object and searching for matches of name & type in plex. If a match the object matchedInPlex variable is set to true. KevinMidboe 2018-10-29 21:01:16 +01:00
  • 8f5bd44e4d Added endpoint for new plex search. KevinMidboe 2018-10-29 20:57:22 +01:00
  • 5d8869e042 Rewrote every function for searching and looking up items from tmdb library. Now there are separate functions for the four categories of search and three for info (multi, movie, show & person). Each function now has its own endpoint and matching controller. Converting tmdb results into a class has been alterted from using three classes; movie, show & person, and each have each their own convertTmdbTo function. Now the structure of the three types are more structured and no longer a single "seasoned" class object. KevinMidboe 2018-10-29 20:55:18 +01:00
  • 90b8ee005e Changed moviedb package to my own fork of it. The old package had vulnerabilities and needed updating. KevinMidboe 2018-10-29 20:49:21 +01:00
  • 1b0525063f New parameter in config and added axios package for new plex connect command. KevinMidboe 2018-10-29 20:47:57 +01:00
  • 41d6bba743 v2 endpoints added for clearer intent in endpoints. Two new controller categories; info and search. KevinMidboe 2018-10-28 12:21:47 +01:00
  • 8977a4b195 Merge pull request #109 from KevinMidboe/package/upgrade Kevin 2018-10-26 01:01:43 +02:00
  • 7e0da028de Imported new version of moviedb package #109 KevinMidboe 2018-10-26 00:59:22 +02:00
  • 2250cf2c4b Changed moviedb node package to my own fork (km-tmdb) with updated to vulnerability in the superagent package KevinMidboe 2018-10-26 00:20:37 +02:00
  • b2bd7b6a1f Update README.md Kevin 2018-08-27 11:58:16 +02:00
  • a2ad7f5628 Removed old content Kevin 2018-08-27 11:56:28 +02:00
  • f85d31991f Removed versioneye badge Kevin 2018-08-27 11:54:48 +02:00
  • 08dc2153ae Updated build config for codeclimate test reporting. Kevin Midbøe 2018-08-26 10:56:50 +02:00
  • bc64e69b3e Fixed syntax error. Kevin Midbøe 2018-08-13 00:01:51 +02:00
  • a29bca7361 Controller now expects three parameters for posting to addMagnet; magnet, name and tmdb_id. Kevin Midbøe 2018-08-12 23:59:26 +02:00
  • d84aa5f173 Merge branch 'master' of github.com:KevinMidboe/seasonedShows Kevin Midbøe 2018-08-12 23:55:40 +02:00
  • 48ebd398bc Changed name values of tables. Kevin Midbøe 2018-08-12 23:50:07 +02:00
  • 1b95103acd Removed test that caused breaking changes. Kevin Midboe 2018-08-12 23:31:18 +02:00
  • 6a1d6687eb Updated gitmodules Kevin Midbøe 2018-07-28 19:00:32 +02:00
  • e849864bc2 Added delugeClient to gitmodules. Kevin Midbøe 2018-07-28 18:55:39 +02:00
  • ecc2a67d48 Updated readme for cloning requrse submodules. Kevin Midbøe 2018-07-28 17:55:28 +02:00
  • bfe0d55f71 Excetion node-pre-gyp failed for version check for sqlite3. The package was set to static version and needed a patch because of errors caused by newer versions of node. Kevin Midbøe 2018-07-28 17:51:59 +02:00
  • 634d4513eb Merge pull request #106 from KevinMidboe/remove_verified 1.0.6 Kevin 2018-07-28 16:17:43 +02:00
  • 0a1276a474 Merge pull request #105 from KevinMidboe/plex_api_update Kevin 2018-07-28 16:17:33 +02:00
  • 3a34d8995e Merge pull request #104 from KevinMidboe/misc Kevin 2018-07-28 16:15:18 +02:00
  • 918e629a06 Merge pull request #103 from KevinMidboe/stray_fixes Kevin 2018-07-28 16:15:03 +02:00
  • 7dd016a56e Changed the python run variable for stray eps. Kevin Midboe 2018-07-28 16:05:22 +02:00
  • c10bbcf518 Added update function to package.json fole. Kevin Midboe 2018-07-28 15:58:02 +02:00
  • 3402a52633 Change to log the parent name of the element instead of the name of file. #106 Kevin Midboe 2018-07-28 10:50:57 +02:00
  • 86e9188a5c The api from plex has changed. This reflects the changes from Video to metadata in the api url. #105 Kevin Midboe 2018-07-28 10:46:25 +02:00
  • 8918b7906e Merge branch 'remove_verified' of github.com:KevinMidboe/seasonedShows into HEAD #104 KevinMidboe 2018-05-13 19:21:52 +02:00
  • 7e028a461d Merge branch 'master' of github.com:KevinMidboe/seasonedShows into HEAD KevinMidboe 2018-05-13 19:21:14 +02:00
  • fe5f0c815e Deluge is now imported and a Deluge class is created and remove function called for name of torrent that is being verified. KevinMidboe 2018-05-13 19:18:45 +02:00
  • d02e79e59e Merge pull request #100 from KevinMidboe/linting Kevin 2018-05-09 11:00:02 +02:00
  • 5b49216c9d Fixed linting issues for json objects and tailing semicolon. #100 KevinMidboe 2018-05-09 10:52:08 +02:00
  • 657ab10034 Removed unused comments. KevinMidboe 2018-05-06 18:36:26 +02:00
  • ed07c77b13 Updated files with tripple === and some linting issues. KevinMidboe 2018-05-06 18:23:29 +02:00
  • 4fe85d9fae Change the ordering of user requests to be newest-first. KevinMidboe 2018-05-06 18:15:54 +02:00
  • b99b5b32ec Updated to use abspath of the file not the call location. KevinMidboe 2018-05-06 18:09:13 +02:00
  • e8058c5e4c Update README.md Kevin 2018-04-19 21:13:14 +02:00
  • 7332b7d474 Update README.md Kevin 2018-04-19 20:22:26 +02:00
  • 7980f14426 Update README.md Kevin 2018-04-19 20:21:44 +02:00
  • 65540fafbd Merge pull request #99 from KevinMidboe/dependency_update Kevin 2018-04-10 11:29:56 +02:00
  • 64ede43dec Added custom rule for object-shorthand and comma-dangle. KevinMidboe 2018-04-08 11:58:16 +02:00
  • bed12cff72 Set branch to master for the submodule torrent_search #99 KevinMidboe 2018-04-08 11:50:15 +02:00
  • 59e7f96643 Updated submodule torrent_search with new commits. KevinMidboe 2018-04-08 11:43:12 +02:00
  • 71e9a5a46e Merge pull request #98 from KevinMidboe/strayParser_fix v1.0.5 Kevin 2018-04-06 16:27:42 +02:00
  • fce6dc7658 Updated when parsing for show name allow names with numbers. #98 KevinMidboe 2018-04-06 16:22:58 +02:00
  • baff59181c Update README.md v1.0.4 Kevin 2018-04-04 23:22:18 +02:00
  • 0592cca16b Updated string_decoder. KevinMidboe 2018-04-04 23:08:00 +02:00
  • e4d5f5085c Updated yarn lockfile. KevinMidboe 2018-04-04 14:41:01 +02:00
  • 66a2a06f9b Compile error, if-statement. #103 KevinMidboe 2018-04-03 23:02:54 +02:00
  • e984feeb8d Would fail if the parent was not a directory. KevinMidboe 2018-04-03 23:00:14 +02:00
  • 490d015f80 Update README.md Kevin 2018-03-30 15:31:15 +02:00
  • f1cc2c4ebe Merge pull request #97 from KevinMidboe/coverage Kevin 2018-03-22 18:30:12 +01:00
  • 2f4421d9e0 Merge branch 'coverage' of github.com:kevinmidboe/seasonedShows into coverage #97 KevinMidboe 2018-03-22 18:25:01 +01:00
  • 92cc094787 Removed old coverage script and updated travis config. KevinMidboe 2018-03-22 18:24:42 +01:00
  • f30b46c384 Update README.md Kevin 2018-03-22 17:20:14 +01:00
  • d9f679603a Command in travis config was doc, not cov. KevinMidboe 2018-03-22 17:17:23 +01:00
  • 64bd9d1e14 Added support for travis upload test coverage to coveralls. KevinMidboe 2018-03-22 15:09:59 +01:00
  • 721826d454 Re-added request and removed superagent. KevinMidboe 2018-03-22 13:24:57 +01:00
  • 242fe3515c Removed and moved some dep to dev. KevinMidboe 2018-03-22 13:23:30 +01:00
  • ccf40d2161 Merge pull request #96 from KevinMidboe/snyk-fix-6de5e99f Kevin 2018-03-22 12:59:36 +01:00
  • 832b8ba539 Added license and description to package.json. Also updated packages node packages. #96 KevinMidboe 2018-03-22 12:56:04 +01:00
  • 0477e49eca fix: seasoned_api/package.json to reduce vulnerabilities snyk-bot 2018-03-22 11:34:42 +00:00
  • 451b67630a Merge pull request #95 from KevinMidboe/docs_testing v1.0.3 Kevin 2018-03-21 23:53:29 +01:00
  • 096bbdf085 Merge branch 'master' into docs_testing #95 Kevin 2018-03-21 23:51:31 +01:00
  • e914e4ab45 Added ORDER BY date that was missing in sql stmt Kevin 2018-03-21 23:44:59 +01:00
  • c1461e1f41 Merge pull request #93 from KevinMidboe/travis Kevin 2018-03-21 14:43:36 +01:00
  • 91bf2c1e2a Updated travis to pull submodules #93 Kevin 2018-03-21 14:30:26 +01:00
  • da3df383ed Update gitmodule torrent_search url to be https Kevin 2018-03-21 14:29:51 +01:00
  • 9816b978d3 Updated demo on readme Kevin 2018-03-21 12:13:57 +01:00
  • 8e22b0f6ea Updated fixtures. v1.0.2 KevinMidboe 2018-03-20 21:18:11 +01:00
  • 18359f442c Mapped results in tmdb now returns the complete json object so not needed to be created before sent. When getting all requested movies and shows it is now possible to only get one page at a time. KevinMidboe 2018-03-20 21:17:41 +01:00
  • 42b8b5ea0e Removed a ) KevinMidboe 2018-03-20 20:15:28 +01:00
  • 996295b1fe Removed the id parameter, not used. KevinMidboe 2018-03-20 20:14:44 +01:00