Commit Graph

143 Commits

Author SHA1 Message Date
9d2b904260 Changed the app search site from jackett to piratebay and added some better handling of errors, now the server does not instantly crash on a error. 2018-01-09 22:47:59 +01:00
f6bd547701 Merge branch 'master' of github.com:kevinmidboe/seasonedShows 2018-01-09 16:55:09 +01:00
e9f6f3a656 We added a new python app for fetching torrents. The api is now changed to use the new project. IMPORTANT that a check for if jackett is set up is done, if else this is will not run correctly. 2018-01-09 16:44:10 +01:00
99ddb61c37 Started by adding some system tests for the api. 2017-12-20 20:47:32 +01:00
790f5d6588 Added travis support to api. 2017-12-20 20:46:15 +01:00
6011615a41 Merge pull request #68 from KevinMidboe/add-metadata-requests
Add metadata requests
2017-12-02 13:23:24 +01:00
7d44f1518f Updated gitignore to ignore conf folder and deleted the contents of conf. 2017-12-01 10:57:28 +01:00
fa8f82449b Merge branch 'master' of github.com:KevinMidboe/seasonedShows 2017-12-01 10:49:08 +01:00
f7b772a170 Changed the default cache TTL from 7 days to 2 days. 2017-12-01 10:46:50 +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
db11c968a3 Renamed folder the plural. 2017-12-01 10:28:29 +01:00
b8647f982d This is where we use our setup function to add tables if none are present in our database file. 2017-12-01 10:27:46 +01:00
ac6bbe6ac6 Now we can build or database by reading schema files. Also added doc strings to all the functions. This is a much better definition of a database script for our usecases.. 2017-12-01 10:19:22 +01:00
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
57658f10c1 Used the wrong shows.db. Now corrected. 2017-11-28 22:25:06 +01:00
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
36b4f16047 Revert "Removed files."
This reverts commit 7f4b95c8c4.
2017-11-28 19:22:40 +01:00
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
7f4b95c8c4 Removed files. 2017-11-04 19:35:06 +01:00
6e9d511b5c Added empty log file and stripped config file. 2017-11-04 19:28:34 +01:00
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
7cce61b3bb Setup for sentry. Need to add __DSN__ value manually. 2017-10-26 15:19:10 +02:00
e417fedece Now follows our airbnb linting schema. 2017-10-26 14:52:00 +02:00
6dd9cf7083 Added eslint and set preset to airbnb base. 2017-10-26 14:51:12 +02:00
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
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
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
7069db8901 Now checks for loggedinuser header variable and passes it to sendRequest. 2017-10-23 15:32:49 +02:00
6f12d0ca49 Added docstring to new functions in tmdb 2017-10-23 15:14:16 +02:00
2d986eb5b3 Removed unused controllers 2017-10-23 15:06:22 +02:00
40928a6e46 Added docstring 2017-10-23 14:59:58 +02:00
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
0e3189ff11 Added default cache time to be 1 day 2017-10-22 18:16:39 +02:00
1925c2a5e3 Changed the variable for saving to searchHistory to be set when user is not false. 2017-10-22 18:04:20 +02:00
7952e6015a Added caching for all tmdb requests. 2017-10-22 17:41:12 +02:00
d2d791f5b2 added loggedinuser as acceptable header. 2017-10-22 17:31:37 +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
354e06a963 Removed searchHistory from tmdb class. 2017-10-22 17:03:40 +02:00
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
8d248135e0 Chagned from using user.username, to just the variable user. 2017-10-22 17:01:58 +02:00
6574c087bc Added user history saving and that tmdb now gets to use cache. 2017-10-22 17:01:26 +02:00
d20ac6470f Was a missing ) 2017-10-22 14:18:38 +02:00
8f4e3a24f4 And the last that imports tmdb class. 2017-10-22 14:16:43 +02:00
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
1b29a08ce8 Removed a unused comment 2017-10-22 14:10:25 +02:00
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
b82efddeba Now tmdb searches also check cache for a matching query request, if so returns it. 2017-10-22 14:08:36 +02:00
7d4178a901 Now uses python2, not python3 because of libtorrent library. 2017-10-21 16:12:27 +02:00
b6b9c790e9 Errors. Removed a return from within a resolve and a stray { in addMagnet. 2017-10-21 15:33:40 +02:00