Commit Graph

63 Commits

Author SHA1 Message Date
KevinMidboe 0a1276a474 Merge pull request #105 from KevinMidboe/plex_api_update
Plex api update
2018-07-28 16:17:33 +02:00
KevinMidboe 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
KevinMidboe 7e028a461d Merge branch 'master' of github.com:KevinMidboe/seasonedShows into HEAD 2018-05-13 19:21:14 +02:00
KevinMidboe 5b49216c9d Fixed linting issues for json objects and tailing semicolon. 2018-05-09 10:52:08 +02:00
KevinMidboe 4fe85d9fae Change the ordering of user requests to be newest-first. 2018-05-06 18:15:54 +02:00
KevinMidboe 096bbdf085 Merge branch 'master' into docs_testing 2018-03-21 23:51:31 +01:00
KevinMidboe e914e4ab45 Added ORDER BY date that was missing in sql stmt 2018-03-21 23:44:59 +01:00
KevinMidboe 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
KevinMidboe 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
KevinMidboe d8078570eb Changed the sort order when selecting all from requests. 2018-03-09 13:36:01 +01:00
KevinMidboe 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
KevinMidboe 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
KevinMidboe e65d4125b9 Trying to sort on the wrong column name. 2018-03-06 21:27:31 +01:00
KevinMidboe cffba202b0 Now the server does not crash when unable to search plex. 2018-03-06 19:33:22 +01:00
KevinMidboe d3b4a34298 Re-added filter options for later use. 2018-03-06 19:32:51 +01:00
KevinMidboe 404c200474 Removed unused mail conf and added a function for getting all requested elements by loggedInUser. 2018-03-06 19:29:21 +01:00
KevinMidboe ec0923f1c0 Can now filter the response by status. 2018-02-26 17:17:37 +01:00
KevinMidboe 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
KevinMidboe ba69893e21 Removed static function. 2018-02-07 15:44:04 +01:00
KevinMidboe dda1db6c5f Linted all plex scripts. 2018-02-07 13:50:05 +01:00
KevinMidboe 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
KevinMidboe 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
KevinMidboe 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
KevinMidboe 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
KevinMidboe 80582f0022 Changed so that tmdb now gets its own type, tmdbtype 2018-02-05 14:23:40 +01:00
KevinMidboe 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
KevinMidboe 89ec9d496b Changed the ip addres of plex server 2018-02-05 13:42:35 +01:00
KevinMidboe bd0c7b8ab5 Now also has size of the existing file. 2018-02-05 13:41:41 +01:00
KevinMidboe 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
KevinMidboe 7069db8901 Now checks for loggedinuser header variable and passes it to sendRequest. 2017-10-23 15:32:49 +02:00
KevinMidboe 0e70a10cc2 Opps, start with then. 2017-10-22 17:31:14 +02:00
KevinMidboe 592528dec2 Forgot to change this to point at our new server 2017-10-22 17:30:49 +02:00
KevinMidboe 6574c087bc Added user history saving and that tmdb now gets to use cache. 2017-10-22 17:01:26 +02:00
KevinMidboe 8f4e3a24f4 And the last that imports tmdb class. 2017-10-22 14:16:43 +02:00
KevinMidboe 799b8731c5 Merge pull request #46 from KevinMidboe/api/update_requested
Api/update requested
2017-10-21 12:46:32 +02:00
KevinMidboe 9b1b041ef5 Now uses ip for other plex server. 2017-10-21 12:43:43 +02:00
KevinMidboe f0fb791e9d Removed unused imports 2017-10-21 10:00:13 +02:00
KevinMidboe d9a22f506e When posting a request, the type is also added to the database. 2017-10-06 15:38:22 +02:00
KevinMidboe 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
KevinMidboe 3c372aab92 Added returnstatement to updateRequestedById and fixed the sql query. 2017-10-06 15:19:08 +02:00
KevinMidboe fb479e7a37 Renamed function in requestRepo to updateRequestedById 2017-10-06 15:14:31 +02:00
KevinMidboe ac38dacedd Changed database table name. 2017-10-06 15:04:50 +02:00
KevinMidboe f54bd0f743 Added a function for updating the status from a given id in requests database. 2017-10-06 15:04:18 +02:00
KevinMidboe 455bf565b2 Moved the ? marker in the sql query to the end of the statement. 2017-10-03 16:19:55 +02:00
KevinMidboe f50e0b2a59 Added user_agent to be passed to and saved in db when a request is made. 2017-10-03 16:10:27 +02:00
KevinMidboe 9d2c7c4c2f Added variable for status for database request query. 2017-10-03 16:01:28 +02:00
KevinMidboe 509759bca8 Added a function in requestRepo to fetch out all the requested items. And a sql statement to do so. 2017-09-27 17:54:01 +02:00
KevinMidboe d47f2bf757 Added support for database operations. Now when requesting a item, it is saved to a database and sends a email from pi.midboe account. 2017-09-26 20:42:49 +02:00
KevinMidboe 6f54a61223 Removed a extra / that was in the posterURL 2017-09-26 20:41:25 +02:00
KevinMidboe 2d465d841e Before when doing a request search we had a lot of promisses and loops within one-another, now it's more split so easier to read and better error handling if something goes wrong when looking up either in plex or tmdb api. 2017-09-20 10:23:36 +02:00