Commit Graph

69 Commits

Author SHA1 Message Date
77433e8505 Query of plex search is now encoded 2019-07-02 23:53:08 +02:00
15826a00ba plexRepo now using class instance plexIp address 2019-06-28 22:42:11 +02:00
b9dec2344e Added timeout to plex requests and include error in error message when unable to search 2019-06-04 23:53:54 +02:00
e3ed08e8dd Now a plex ip address is dynamically passed into the plexrepository, fetched from the config 2019-06-04 23:45:22 +02:00
e6796aff8b Hotfix 🧯 for returning new poster object variable 2019-06-04 21:41:10 +02: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. 2018-10-29 21:01:16 +01:00
0a1276a474 Merge pull request #105 from KevinMidboe/plex_api_update
Plex api update
2018-07-28 16:17:33 +02:00
86e9188a5c The api from plex has changed. This reflects the changes from Video to metadata in the api url. 2018-07-28 10:46:25 +02:00
7e028a461d Merge branch 'master' of github.com:KevinMidboe/seasonedShows into HEAD 2018-05-13 19:21:14 +02:00
5b49216c9d Fixed linting issues for json objects and tailing semicolon. 2018-05-09 10:52:08 +02:00
4fe85d9fae Change the ordering of user requests to be newest-first. 2018-05-06 18:15:54 +02:00
096bbdf085 Merge branch 'master' into docs_testing 2018-03-21 23:51:31 +01:00
e914e4ab45 Added ORDER BY date that was missing in sql stmt 2018-03-21 23:44:59 +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. 2018-03-20 21:17:41 +01:00
edf1de223e When filtering the request on status the sql query for the db did not sort DESC. 2018-03-20 13:11:26 +01:00
d8078570eb Changed the sort order when selecting all from requests. 2018-03-09 13:36:01 +01:00
37474de848 Changed to resolve and reject the result from tmdb. And first get the username before sending user to another functoin. 2018-03-07 18:14:07 +01:00
453727db1b Fixed issue where the user was not being saved alongside the request. Also fixed what the list of requests are sorted by. 2018-03-07 15:35:55 +01:00
e65d4125b9 Trying to sort on the wrong column name. 2018-03-06 21:27:31 +01:00
cffba202b0 Now the server does not crash when unable to search plex. 2018-03-06 19:33:22 +01:00
d3b4a34298 Re-added filter options for later use. 2018-03-06 19:32:51 +01:00
404c200474 Removed unused mail conf and added a function for getting all requested elements by loggedInUser. 2018-03-06 19:29:21 +01:00
ec0923f1c0 Can now filter the response by status. 2018-02-26 17:17:37 +01:00
4bc94ae3b7 When a element is not found in plex it now still gets a matchedInPlex value, now False when not found. 2018-02-26 16:59:56 +01:00
ba69893e21 Removed static function. 2018-02-07 15:44:04 +01:00
dda1db6c5f Linted all plex scripts. 2018-02-07 13:50:05 +01:00
7e874bbc9d Now our convert scripts use our new plex and tmdb classes. Also compacted and abstracted a lot of the code here. 2018-02-07 13:39:45 +01:00
3c263a1ae7 Now we have brand spanking new functions for lookup and searching. The idea here is to match tmdb items to plex counterparts. 2018-02-05 22:48:00 +01:00
6f626d410d Rewrote most of this class. Now we have helper functions for getting info about items in plex. Used function is inPlex where we can input a tmdb item and it append if the item exsists in plex. 2018-02-05 22:44:57 +01:00
cfb878fa64 Fixed issue where a item would not be returned when nothing was found matching query in plex. Also moved checkId up in the request. 2018-02-05 14:55:49 +01:00
80582f0022 Changed so that tmdb now gets its own type, tmdbtype 2018-02-05 14:23:40 +01:00
cfedd4e9c8 Added ability to check if a element is previously been requested. Also changed the schema of db to store movies poster as poster_path and background as background_path. 2018-02-05 13:47:10 +01:00
89ec9d496b Changed the ip addres of plex server 2018-02-05 13:42:35 +01:00
bd0c7b8ab5 Now also has size of the existing file. 2018-02-05 13:41:41 +01:00
d0597b4e1e This is our main focus on changing, this is where we add a background parameter in our database entry. 2017-12-01 10:34:09 +01:00
7069db8901 Now checks for loggedinuser header variable and passes it to sendRequest. 2017-10-23 15:32:49 +02:00
0e70a10cc2 Opps, start with then. 2017-10-22 17:31:14 +02:00
592528dec2 Forgot to change this to point at our new server 2017-10-22 17:30:49 +02:00
6574c087bc Added user history saving and that tmdb now gets to use cache. 2017-10-22 17:01:26 +02:00
8f4e3a24f4 And the last that imports tmdb class. 2017-10-22 14:16:43 +02:00
799b8731c5 Merge pull request #46 from KevinMidboe/api/update_requested
Api/update requested
2017-10-21 12:46:32 +02:00
9b1b041ef5 Now uses ip for other plex server. 2017-10-21 12:43:43 +02:00
f0fb791e9d Removed unused imports 2017-10-21 10:00:13 +02:00
d9a22f506e When posting a request, the type is also added to the database. 2017-10-06 15:38:22 +02:00
307a8352a3 Now takes both id and type because there is two different sets of id pools, and need to select the corrent one. 2017-10-06 15:37:09 +02:00
3c372aab92 Added returnstatement to updateRequestedById and fixed the sql query. 2017-10-06 15:19:08 +02:00
fb479e7a37 Renamed function in requestRepo to updateRequestedById 2017-10-06 15:14:31 +02:00
ac38dacedd Changed database table name. 2017-10-06 15:04:50 +02:00
f54bd0f743 Added a function for updating the status from a given id in requests database. 2017-10-06 15:04:18 +02:00
455bf565b2 Moved the ? marker in the sql query to the end of the statement. 2017-10-03 16:19:55 +02:00