Commit Graph

66 Commits

Author SHA1 Message Date
56262a45c8 Moved contents of seasoned_api up to root folder 2022-08-19 01:03:27 +02:00
47aa638fd8 Moved eveything related to the api to a seperate folder seasoned_api. 2017-08-06 16:45:02 +02:00
bc4eff795e Added quotes to poster url 2017-08-06 09:19:39 +02:00
fbf49e4cd9 Updated to use sqlite3 instead of sqlite in api 2017-07-29 13:21:25 +02:00
6b5a2341bf Class file that creates and returns objects for the mail sender in a single place. 2017-07-16 13:47:49 +02:00
30d26d82c3 Added nodemailer to send email of the requested movie 2017-07-16 13:47:06 +02:00
e77a05db07 Merge pull request #14 from KevinMidboe/client_feature
Client feature
2017-07-16 11:19:15 +02:00
c45df8a131 Added controller for calling POST request function for media items. 2017-07-16 11:08:14 +02:00
91606fc9b8 Removed unused import 2017-07-16 11:05:30 +02:00
3047dce147 Opened the POST endpoint for requesting a movie in the server 2017-07-16 11:04:56 +02:00
Kevin Midbøe
2c97803d82 Added a sendRequest function for handliing the post of a movie request 2017-07-16 11:03:30 +02:00
b2848e6a7e Merge pull request #13 from KevinMidboe/api
Verify that respond has content, if so send the content back. If no c…
2017-07-01 08:47:19 +02:00
1663f5931d Verify that respond has content, if so send the content back. If no content was found, send 404 status and error message 2017-07-01 08:46:37 +02:00
5b8394c5a0 Merge pull request #12 from KevinMidboe/api
If search request returns empty array from tmdb, then send a 404 repo…
2017-07-01 08:37:53 +02:00
ba3a1fa028 If search request returns empty array from tmdb, then send a 404 reponse with error message back to client. 2017-07-01 08:37:29 +02:00
3bb43f08f2 Controller for handling submits of item requests. 2017-06-04 00:13:35 +02:00
703e3d3785 Added a api endpoint for submitting a movie request. 2017-06-04 00:13:02 +02:00
6496988e51 Changed variable names to better reflect their purpose 2017-06-04 00:12:38 +02:00
069d984c39 Added for handling input of movie request, but still need to work on the way the python script is run. 2017-06-04 00:10:35 +02:00
907bc73a7f Added overview (description) from tmdb movie to movieObject. 2017-06-03 13:07:49 +02:00
d05aa13c39 Changes to more strict origin policy. 2017-06-03 11:17:09 +02:00
9d11798133 Removed test logging functions 2017-06-02 12:14:19 +02:00
76b8c46197 Test if bitrate exists 2017-06-02 08:49:20 +02:00
5ab71d9ed8 Added morgan for logging purposes 2017-06-02 08:49:00 +02:00
c8090dfb96 Added option for filtering in verified and page number when searching through all stray episodes. 2017-05-15 12:30:18 +02:00
a5f8a2adce Linting, added newline at eos 2017-05-14 08:19:24 +02:00
c4a1fb5c78 In readall, the verified status is also sent. 2017-05-13 13:21:17 +02:00
9f67354bd4 Controllers for routing tmdb requests to correct functions is tmdbRepo and returns approp status messgaes on errors 2017-05-10 20:19:37 -06:00
9424de9037 Classes for holding info from different parts of a plex stream 2017-05-10 20:18:38 -06:00
dfb8c40a29 Routes request to correct function in plexRepo and if error, returns correct error. 2017-05-10 20:16:35 -06:00
a5ecaff00e Routes request to correct function in plexRepo and if error, returns correct error. 2017-05-10 20:16:05 -06:00
98d30257f0 Routes plex webhook to handler. 2017-05-10 20:14:55 -06:00
4bdffad9fb Similar to tmdb and plex search and lookup. This uses both at same time to check if a searched tmdb item is in plex and adds matchedInPlex tag to the item. 2017-05-10 20:13:45 -06:00
8d16a4952f Just console logs the request from plex webhook. This was created just to test webhooks for plex and will later handle input 2017-05-10 20:00:51 -06:00
3a83b98df0 Function that converts json object about stream from plex format to wanted custom format. 2017-05-10 19:59:25 -06:00
baa8515bd4 Creates a stream object that converts the plex now_playing json format to contain only the wanted information about the palyer, user, transcode, and whats playing 2017-05-10 19:57:49 -06:00
5464837682 Removed unused import 2017-05-10 19:46:59 -06:00
81b41c0d39 Added new endpoints to api. All for plex and tmdb. 2017-05-10 19:45:52 -06:00
53ab8cd002 Changed search funciton to use the correct default multi_search type. The search function now also filters the items by popularity so movies that are pretty unknown are not returned, this will maybe be set manually later. New lookup function that gets movie info from tmdb by id. Tmdb function now also uses items from new methodType object. 2017-05-10 19:44:28 -06:00
b7f229ac77 Now have player, movie, mediaInfo and user. These are small classes that holds vars for the specific type. The movie class is the same as the one prev in src/movie/movie.js 2017-05-10 19:40:29 -06:00
3f043a2a11 Changed so that movieClass from tmdb checks if it is a movie by checking media_type and if releasedate is set and tv show by if first_air_date is set. NB, object is called movie, but could also be ep. 2017-05-10 19:38:45 -06:00
b72e291c1e Added a nowPlaying function that reads, maps to custom stream object and returns in stuborn promise way 2017-05-10 19:19:53 -06:00
77addaaa23 Changed the location of movie from movie folder to media_classes 2017-05-10 19:18:19 -06:00
8f43f1f878 Changed to import location for movie to reflect changes. Added a if statement to check if item is tv show episode and set varaibles respectively. 2017-05-10 19:17:36 -06:00
8e4506e320 Now searching in tmdb handles type for filtering media type 2017-04-21 17:01:35 +02:00
76d39416a1 Now can handle type selector aswell 2017-04-21 16:59:07 +02:00
cbe06abf88 Now does multisearch instead of just moviesearch 2017-04-21 16:57:17 +02:00
98161f0616 Now handles movies and tv shows 2017-04-21 16:56:50 +02:00
5a6111c865 Now saves plex poster and background images 2017-04-21 16:56:02 +02:00
55be31b3db Removed unused function 2017-04-20 22:50:12 +02:00