Commit Graph

42 Commits

Author SHA1 Message Date
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
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
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
dda1db6c5f Linted all plex scripts. 2018-02-07 13:50:05 +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
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
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
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
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
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
9eb31ea433 Added type input to the sendRequest function. 2017-09-03 18:16:26 +02:00
84a897da6e Added popularity and vote_count to movie and show object and added a new check for name and title of movie 2017-09-02 22:51:49 +02:00
17dd66e9ac Fixed a bug where if a seach query did not pass anything back when checking existance in plex, then you would get a 404 message. 2017-09-02 21:12:38 +02:00
a82dc1ae78 Added requestRep again 2017-09-02 16:36:54 +02:00
e33840f1db Commented out unused elements. 2017-09-02 16:03:43 +02:00
47aa638fd8 Moved eveything related to the api to a seperate folder seasoned_api. 2017-08-06 16:45:02 +02:00