Commit Graph

58 Commits

Author SHA1 Message Date
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
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
9d2c7c4c2f Added variable for status for database request query. 2017-10-03 16:01:28 +02:00
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
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
6f54a61223 Removed a extra / that was in the posterURL 2017-09-26 20:41:25 +02:00
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
eb2de340a3 Added variables for audioProfile, videoProfile, duration and container for a playback. 2017-09-07 23:52:05 +02:00
0370f051bc Changed the error message returned if something goes wrong when fetching playing 2017-09-07 23:51:22 +02:00
3eb2bbe54e Removed a console log 2017-09-07 23:49:21 +02:00
cd52d295b0 Now both Media and Media.Part in the JSON object about a stream is a list and need to index the first element of the stream to get this info. 2017-09-07 23:47:11 +02:00
9eb31ea433 Added type input to the sendRequest function. 2017-09-03 18:16:26 +02:00