Commit Graph

288 Commits

Author SHA1 Message Date
ae66e9a684 Changed variable name from movie to searchResult and now checks if the result list in the return JSON object is empty before sending a result back to client. 2017-09-20 10:25:01 +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
72d50209a5 Rewrote the search function in tmdb to now return a JSON object with results: (all movie/show objects), number_of_items: (count of result objects), page and total page. Split up the filtering and converting of the result from tmdb api to finished seasoned objects for better readability. 2017-09-20 10:21:57 +02:00
fae3fcc74c Merge branch 'master' of github.com:KevinMidboe/seasonedShows 2017-09-12 20:15:41 +02:00
12835d4ed5 Changed the location of moveseasoned app script. 2017-09-12 20:15:20 +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
a8c6850863 For some reason this was player info, but it is now been replaced with all the variables specific for mediaInfo 2017-09-07 23:48:06 +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
28d0b63960 Added TODO and a output of what is requested in the router 2017-09-03 18:17:07 +02:00
9eb31ea433 Added type input to the sendRequest function. 2017-09-03 18:16:26 +02:00
7a1f709d90 Small changed that first checks if the variable is undefined or not and then length 2017-09-03 17:06:19 +02:00
e81f5c8057 Added functions for discover, upcoming, nowplaying, popular and similar. Also documented better and some finer error handling with more logical responses. 2017-09-03 17:04:59 +02:00
789ed77ab6 Now the type of object being passed can be set by strictType variable. The type is then set before creating a movie or show object item. 2017-09-03 17:03:31 +02:00
2dc22b386d Added endpoints for discover media (either movie or show), getUpcoming movies, nowPlaying (movies or shows), popular (movie or show) and search similar where the type movie/show must be defined 2017-09-03 17:02:02 +02:00
3e12cf10fb Updated tmdb to use the new endpoints 2017-09-03 16:59:52 +02:00
70b284380f Removed unused console.log 2017-09-02 23:16:24 +02:00
a5bb42f175 Merge pull request #20 from KevinMidboe/api_bugfixing
Api bugfixing and changed value of filter for tmdb search
2017-09-02 22:54:09 +02:00
dacd44a8f5 Changed the value of the filter to be vote_count >= 80 or popularity > 18 2017-09-02 22:53:04 +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
d5479be563 Merge pull request #19 from KevinMidboe/api_bugfixing
Api bugfixing
2017-09-02 21:15:36 +02:00
849bc4aa5e Merge pull request #18 from KevinMidboe/app_style_update
App style update
2017-09-02 21:13:43 +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
8149c8f732 Added date_added for plex added date. 2017-09-02 20:50:19 +02:00
8652a0ee0f Rewrote for more general use. 2017-09-02 20:49:50 +02:00
101dc7d570 Changed the filter cutoff to be based on, if the show/movie has popularity over 2, vote_count over 20 and has a defined release_date/first_air_date. Also changed so that it now uses the new convertTmdbToSeaonsed insted of the old (convertTmdbToMovie) 2017-09-02 20:49:09 +02:00
3bf646483d Renamed file. Now converts to both movie and show. Also added more data that is saved to the object. 2017-09-02 18:13:51 +02:00
622e89ea50 Changed import name from convertPlexToMovie -> convertPlexToSeasoned and changed from map function to reduce to be able to filter only movies and shows to be parsed. 2017-09-02 18:13:08 +02:00
b4a005da42 Changed the name of convertPlexToMovie -> convertPlexToSeasoned 2017-09-02 18:11:59 +02:00
1a858d09bb Created a new shows class that only holds relevant information for shows. 2017-09-02 18:10:16 +02:00
a4fe5cc635 Made this a singular movie object that now only holds relevant information for movies. 2017-09-02 18:09:43 +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
56405e54f9 Downgraded from sqlite3 to sqlite because of connection function error. 2017-08-23 10:26:23 +02:00
d2bed84ecb Moved conf folder to seasoned_api 2017-08-14 22:42:24 +02:00
b8d01fcf1c Changed filename for moveSeasoned to include dir 2017-08-14 22:33:28 +02:00
47aa638fd8 Moved eveything related to the api to a seperate folder seasoned_api. 2017-08-06 16:45:02 +02:00