Commit Graph

380 Commits

Author SHA1 Message Date
KevinMidboe 2b772e3017 Long overdue, now we define our database schema so we can finally build our database, and not just move it around. 2017-12-01 10:14:22 +01:00
KevinMidboe 57658f10c1 Used the wrong shows.db. Now corrected. 2017-11-28 22:25:06 +01:00
KevinMidboe ff78dfbd50 Cleaned up in the main gitignore file and moved seasoned_api related ignore to its child file. 2017-11-28 19:24:47 +01:00
KevinMidboe 36b4f16047 Revert "Removed files."
This reverts commit 7f4b95c8c4.
2017-11-28 19:22:40 +01:00
KevinMidboe 5da57062a7 Added a gitignore for each main folder because we have python based scripts in one folder, javascript/react and javascript/node in the other. 2017-11-28 19:19:50 +01:00
KevinMidboe 7f4b95c8c4 Removed files. 2017-11-04 19:35:06 +01:00
KevinMidboe 6e9d511b5c Added empty log file and stripped config file. 2017-11-04 19:28:34 +01:00
KevinMidboe 2fc9674548 Added some todos for routers/middleware and setup so that raven will be used for error handling and gets value from config file. 2017-11-04 18:11:44 +01:00
KevinMidboe 7cce61b3bb Setup for sentry. Need to add __DSN__ value manually. 2017-10-26 15:19:10 +02:00
KevinMidboe e417fedece Now follows our airbnb linting schema. 2017-10-26 14:52:00 +02:00
KevinMidboe 6dd9cf7083 Added eslint and set preset to airbnb base. 2017-10-26 14:51:12 +02:00
KevinMidboe 1bdf89b69f Merge pull request #55 from KevinMidboe/api_tuning
Lowered the tollerance for what objects we choose to look at by tmdb.…
2017-10-23 15:39:57 +02:00
KevinMidboe 498bd13a1f Lowered the tollerance for what objects we choose to look at by tmdb. That is we only accept items that have some value of vote or popularity. 2017-10-23 15:39:28 +02:00
KevinMidboe 80dcba2fba Merge pull request #54 from KevinMidboe/api_save-user-w-request
Api save user w request
2017-10-23 15:36:28 +02:00
KevinMidboe 7069db8901 Now checks for loggedinuser header variable and passes it to sendRequest. 2017-10-23 15:32:49 +02:00
KevinMidboe 6f12d0ca49 Added docstring to new functions in tmdb 2017-10-23 15:14:16 +02:00
KevinMidboe 2d986eb5b3 Removed unused controllers 2017-10-23 15:06:22 +02:00
KevinMidboe 40928a6e46 Added docstring 2017-10-23 14:59:58 +02:00
KevinMidboe c48db517ac Created one function for searching for different tmdb lists. This replaces 4 endpoints so we have a single way of searching for lists. 2017-10-23 14:58:52 +02:00
KevinMidboe 0e3189ff11 Added default cache time to be 1 day 2017-10-22 18:16:39 +02:00
KevinMidboe 1925c2a5e3 Changed the variable for saving to searchHistory to be set when user is not false. 2017-10-22 18:04:20 +02:00
KevinMidboe 7952e6015a Added caching for all tmdb requests. 2017-10-22 17:41:12 +02:00
KevinMidboe d2d791f5b2 added loggedinuser as acceptable header. 2017-10-22 17:31:37 +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 354e06a963 Removed searchHistory from tmdb class. 2017-10-22 17:03:40 +02:00
KevinMidboe cc8d9f0c50 Added docstring, removed a unused console.log and added better error handling for empty return statement.s 2017-10-22 17:03:16 +02:00
KevinMidboe 8d248135e0 Chagned from using user.username, to just the variable user. 2017-10-22 17:01:58 +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 d20ac6470f Was a missing ) 2017-10-22 14:18:38 +02:00
KevinMidboe 8f4e3a24f4 And the last that imports tmdb class. 2017-10-22 14:16:43 +02:00
KevinMidboe f89d81681a Added import for cache to initiate our tmdb class in the correct way, but still not implemented the actual cache lookup. 2017-10-22 14:14:29 +02:00
KevinMidboe 1b29a08ce8 Removed a unused comment 2017-10-22 14:10:25 +02:00
KevinMidboe f57878813d Added Cache file for tmdb queries and controller check the cache and returns it if hit. This is to limit our request to a third party library. 2017-10-22 14:09:57 +02:00
KevinMidboe b82efddeba Now tmdb searches also check cache for a matching query request, if so returns it. 2017-10-22 14:08:36 +02:00
KevinMidboe 7d4178a901 Now uses python2, not python3 because of libtorrent library. 2017-10-21 16:12:27 +02:00
KevinMidboe b6b9c790e9 Errors. Removed a return from within a resolve and a stray { in addMagnet. 2017-10-21 15:33:40 +02:00
KevinMidboe 1425da3090 Missed to add some extra parantheses around our return statement. 2017-10-21 15:31:04 +02:00
KevinMidboe d1d204691a Changed from GET to POST 2017-10-21 15:28:32 +02:00
KevinMidboe 5a24837163 Controller for adding magnets from post body magnet variable. 2017-10-21 15:28:13 +02:00
KevinMidboe 4c7be51a61 Added endpoint for add and now user must be authenticated for both pirate endpoints. 2017-10-21 15:27:21 +02:00
KevinMidboe 3e6fc0960c PirateRepo now has a function for calling our add magnet python script with a magnet passed from the controller. 2017-10-21 15:26:29 +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 74ea05cf17 Fixed error where the was an extra ' character. 2017-10-21 12:45:31 +02:00
KevinMidboe 9b1b041ef5 Now uses ip for other plex server. 2017-10-21 12:43:43 +02:00
KevinMidboe 3c039447f5 Renamed the endpoint to search. 2017-10-21 12:29:28 +02:00
KevinMidboe a6d00714d6 Inputs a query, page and type and will search the bay for the query and return it as a json objec.t 2017-10-21 12:28:21 +02:00
KevinMidboe 67f5cef718 Now makes a async call for python script and returns the ouput of the script when finished as a json object. 2017-10-21 12:27:39 +02:00
KevinMidboe 67d343e446 Added endpoint for searching the bay 2017-10-21 10:01:16 +02:00
KevinMidboe 1f6130a53d Added pirateRepository 2017-10-21 10:00:45 +02:00