Commit Graph

149 Commits

Author SHA1 Message Date
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
KevinMidboe f0fb791e9d Removed unused imports 2017-10-21 10:00:13 +02:00
KevinMidboe d9a22f506e When posting a request, the type is also added to the database. 2017-10-06 15:38:22 +02:00
KevinMidboe 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
KevinMidboe 3c372aab92 Added returnstatement to updateRequestedById and fixed the sql query. 2017-10-06 15:19:08 +02:00
KevinMidboe 650c2603e4 Changed the input path of requestRepo 2017-10-06 15:16:45 +02:00
KevinMidboe fb479e7a37 Renamed function in requestRepo to updateRequestedById 2017-10-06 15:14:31 +02:00
KevinMidboe ac38dacedd Changed database table name. 2017-10-06 15:04:50 +02:00
KevinMidboe f54bd0f743 Added a function for updating the status from a given id in requests database. 2017-10-06 15:04:18 +02:00
KevinMidboe 61c242b5eb Passes the id from request parameter and status we want to change to from the request body. 2017-10-06 15:03:47 +02:00
KevinMidboe 51d446f378 Added endpoint for updating a requested item. 2017-10-06 15:02:44 +02:00
KevinMidboe f8ff71bcff Removed a no longer used ip address for allowed origins. 2017-10-06 12:14:05 +02:00
KevinMidboe 7e27e19a0d Added more strict header allowence and was a error where endpoints for user was not using router, but app. 2017-10-06 12:12:21 +02:00
KevinMidboe 5e50d52344 Now gitignore is working for new prefs. 2017-10-04 14:25:05 +02:00
KevinMidboe 26c1bda3df Now when calling moveSeason python script, the python version used is python3. 2017-10-04 14:18:42 +02:00
KevinMidboe 5fbedeb4b2 Misspelled User-Agent, when should have been user-agent. 2017-10-03 16:26:03 +02:00
KevinMidboe 455bf565b2 Moved the ? marker in the sql query to the end of the statement. 2017-10-03 16:19:55 +02:00
KevinMidboe a819a4bbf3 Now passes the user agent that is making the post request (requesting content) so it can be saved in the db. 2017-10-03 16:11:15 +02:00
KevinMidboe 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
KevinMidboe 9d2c7c4c2f Added variable for status for database request query. 2017-10-03 16:01:28 +02:00
KevinMidboe a8166bcad9 Removed unused console. 2017-09-27 17:56:36 +02:00
KevinMidboe 149b05ef28 Calling function for fetching all the requested items. 2017-09-27 17:55:07 +02:00
KevinMidboe e43bcbdd52 Added endpoint for getting all requests. 2017-09-27 17:54:34 +02:00
KevinMidboe 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
KevinMidboe bab4af08d9 Added the use of tokenToUser so that it is verified that a valid token is in the request header when doing actions that need login verification. 2017-09-27 16:27:05 +02:00
KevinMidboe a3de70e2da Created a middleware for requests that checks for a token in the Authentication field in the header and verifies that the token is valid for a user. 2017-09-27 16:25:54 +02:00
KevinMidboe 698d2d6072 Created endpoints for user tasks like login, register and a test endpoint history. A test for checking that session token works as expected. 2017-09-27 16:19:02 +02:00
KevinMidboe 6ec6c7f9cb Added token, user, userRepository and userSecurity in user folder. This handles creating new users, loging in and creating a user specific token then returning it when logging in. 2017-09-27 16:15:28 +02:00
KevinMidboe 72654fd465 Added searchHistory for adding a logged in users history trace. (More like a test function of the page) 2017-09-27 16:13:39 +02:00
KevinMidboe f4aee549be Added bcrypt and jsonwebtoken to package list 2017-09-27 16:12:20 +02:00
KevinMidboe bb6dd1ad59 Added middleware for authentiaction, endpoints for a user and import for token handling. 2017-09-27 14:02:59 +02:00
KevinMidboe 5ceb19f449 Merge branch 'update/frontend_logic' of github.com:kevinmidboe/seasonedShows into update/frontend_logic 2017-09-27 13:51:07 +02:00