b9dec2344e
Added timeout to plex requests and include error in error message when unable to search
KevinMidboe2019-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
KevinMidboe2019-06-04 23:47:10 +02:00
e3ed08e8dd
Now a plex ip address is dynamically passed into the plexrepository, fetched from the config
KevinMidboe2019-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
KevinMidboe2019-06-04 23:35:21 +02:00
99bab3fb73
Movie and show can also return credits for a item. Enabled by query parameter credits=true
KevinMidboe2019-06-04 23:32:38 +02:00
e6796aff8b
Hotfix 🧯 for returning new poster object variable
KevinMidboe2019-06-04 21:41:10 +02:00
1f9dc067e6
Plex params are now parsed with URI encoder.
Kevin Midboe2019-04-10 22:22:52 +02: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.
KevinMidboe2018-11-10 20:26:28 +01:00
87eb6de802🔨 test now requests with id in body not in query params.
KevinMidboe2018-11-10 01:57:19 +01:00
840816c930
request returns all requested items. Optional sort, query and filter params.
KevinMidboe2018-11-10 01:50:24 +01:00
91d238de7c
Request id is now passed as body param. Database default timestamp value changed to epoch time.
KevinMidboe2018-11-09 22:13:00 +01:00
87c76e3f1d
Tests now suppoer the new list endpoints. Also updated response for interstellar query (movieInfo).
KevinMidboe2018-11-01 00:18:54 +01:00
e64c4d5d01
Lists are now reachable by movie or show / listname. Endpoints added & removed outdated comments.
KevinMidboe2018-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
KevinMidboe2018-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.
KevinMidboe2018-11-01 00:15:49 +01:00
e7c66af3f6
Merge branch 'master' into api/v2
Kevin2018-10-30 21:02:47 +01:00
8ece7b84c4
test configuration also gets plex ip parameter.
KevinMidboe2018-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.
KevinMidboe2018-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.
KevinMidboe2018-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.
KevinMidboe2018-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.
KevinMidboe2018-10-29 21:01:16 +01:00
8f5bd44e4d
Added endpoint for new plex search.
KevinMidboe2018-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.
KevinMidboe2018-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.
KevinMidboe2018-10-29 20:49:21 +01:00
1b0525063f
New parameter in config and added axios package for new plex connect command.
KevinMidboe2018-10-29 20:47:57 +01:00
41d6bba743
v2 endpoints added for clearer intent in endpoints. Two new controller categories; info and search.
KevinMidboe2018-10-28 12:21:47 +01:00
8977a4b195
Merge pull request #109 from KevinMidboe/package/upgrade
Kevin2018-10-26 01:01:43 +02:00
2250cf2c4b
Changed moviedb node package to my own fork (km-tmdb) with updated to vulnerability in the superagent package
KevinMidboe2018-10-26 00:20:37 +02:00
ecc2a67d48
Updated readme for cloning requrse submodules.
Kevin Midbøe2018-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øe2018-07-28 17:51:59 +02:00
0a1276a474
Merge pull request #105 from KevinMidboe/plex_api_update
Kevin2018-07-28 16:17:33 +02:00
3a34d8995e
Merge pull request #104 from KevinMidboe/misc
Kevin2018-07-28 16:15:18 +02:00
918e629a06
Merge pull request #103 from KevinMidboe/stray_fixes
Kevin2018-07-28 16:15:03 +02:00
7dd016a56e
Changed the python run variable for stray eps.
Kevin Midboe2018-07-28 16:05:22 +02:00
c10bbcf518
Added update function to package.json fole.
Kevin Midboe2018-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 Midboe2018-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 Midboe2018-07-28 10:46:25 +02:00
8918b7906e
Merge branch 'remove_verified' of github.com:KevinMidboe/seasonedShows into HEAD
#104
KevinMidboe2018-05-13 19:21:52 +02:00
7e028a461d
Merge branch 'master' of github.com:KevinMidboe/seasonedShows into HEAD
KevinMidboe2018-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.
KevinMidboe2018-05-13 19:18:45 +02:00
d02e79e59e
Merge pull request #100 from KevinMidboe/linting
Kevin2018-05-09 11:00:02 +02:00
5b49216c9d
Fixed linting issues for json objects and tailing semicolon.
#100
KevinMidboe2018-05-09 10:52:08 +02: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.
KevinMidboe2018-03-20 21:17:41 +01:00