5923cbf051
Incorrect query parameter. Changed from (the not defined) plex_userid to username.
#124
KevinMidboe2019-12-22 13:49:16 +01:00
291bdf089c
Forget to rename copied link function to unlink
KevinMidboe2019-12-22 13:42:13 +01:00
8eacde9ccc
Moved tautulli config settings to be fetched from our configuration (either env variable or conf/development.json.
KevinMidboe2019-12-22 13:36:13 +01:00
f8847c62f2
UserRepository handles updating db settings better.
KevinMidboe2019-12-22 13:17:20 +01:00
ddb7e7379d
Every instance of sqlite database should have foreign_keys constraints on
KevinMidboe2019-12-22 13:14:12 +01:00
fedacf498e
Changed input parameter from name from user to username, cause we just get the username string.
KevinMidboe2019-12-22 12:44:45 +01:00
9022853502
Sql schema now has requested_by as a foreign key for user_name and on delete set null clause.
KevinMidboe2019-12-22 12:43:12 +01:00
c1b96e17ca
Moved database row plex_userid from user to a new table settings. Currently includes plex_userid, emoji and darkmode with user_name as a foreign key to user.user_name.
KevinMidboe2019-12-20 21:45:31 +01:00
488da889d8
Current state of graphql implementation. Some things are broken. Focused on getting progress from deluge linked with requests and requested torrents. Warning! the payload size of this action is 1MB pr second. This also heavily dependes on un-tracked changes in both delugeClient and the frontend for the visualization.
research/graphql
KevinMidboe2019-11-21 22:31:59 +01:00
510c014549
Added endpoint for getting plays grouped by days of week.
KevinMidboe2019-11-11 17:59:16 +01:00
8da7c159b1
WIP graphql to get requests, torrents and working on requests with torrents by username.
Kevin Midbøe2019-11-11 16:54:54 +01:00
2650497986
Tautulli will serve all the tautulli api calls. Mostly this will be used by user requests for getting stats related to the logged in user. WIP but currently watch time stats, plays by number of days, and view history has been implemented. TODO: - Error handling if tautulli request fails. - Filter the responses and/or limit them from tautulli - Handle parsing variable parameters from request
KevinMidboe2019-11-04 23:07:25 +01:00
639f0ec17a
Created middleware to check if the user has a plex user linked to seasoned account. If not respond with 403 meaning you did have a authorization key, but this is forbidden; explaining in the response message that no plex account user id was found for this user and to please authenticate their plex account at authenticate endpoint.
KevinMidboe2019-11-04 23:04:33 +01:00
977d05c6f2
Refactor. Responses should return error string in object key message not error.
KevinMidboe2019-11-04 22:58:42 +01:00
601fc1d0de
Renamed search_history controller to searchHistory
KevinMidboe2019-11-04 22:57:59 +01:00
acc26a2f09
Renamed user history to search_history and fixed an issue where search history received the entire user object and not just the username
KevinMidboe2019-11-04 20:32:41 +01:00
002e663be1
Merge branch 'api/v2' into feature/plex-authentication
KevinMidboe2019-11-04 17:55:27 +01:00
fd475265c1
Updated test to reflect changes to all error response objects. (changed from returning message in error key to message.
#111
KevinMidboe2019-11-04 17:54:08 +01:00
05b001de2e
Created endpoint for authenticating with plex and linking your plex user to the logged in seasoned user. User database table gets a new plex_userid column. This will be used to fetch tautulli stats for your account.
KevinMidboe2019-11-04 00:43:42 +01:00
5623344666
Merge branch 'master' into api/v2
Kevin2019-11-03 20:57:25 +01:00
f8cc19b510
Added rating and release_date when parsing movies and fixed respective tests
KevinMidboe2019-11-03 20:56:46 +01:00
6c2c81a1a1
Updated movieInfo controller to also handle requesting release_dates as query parameter
KevinMidboe2019-10-04 22:36:39 +02:00
90aa4d2485
Rewrote the movie & show list controller to be more abstract and easier to extend later
KevinMidboe2019-10-04 21:21:52 +02:00
0ca3f81bf8
listController first defines all async functions as constant variables then module exports them all as a dict
KevinMidboe2019-10-04 20:55:39 +02:00
b9831c6b3d
Forgot to reasing variables after copy-pasting them in convertTmdbToMovie
KevinMidboe2019-10-04 20:37:06 +02:00
4781e9ae65
Merge pull request #119 from KevinMidboe/snyk-fix-a43be890852096db7a469faa6c44f8ef
Kevin2019-07-27 02:17:50 +02:00
bc4d73821d
Upgraded webpack-dev-server to not have a screaming vulnerability
KevinMidboe2019-07-27 02:05:38 +02:00
ab6144eb81
Update yarn lock, updated coveralls and mocha run under coverage command now uses required babel register
KevinMidboe2019-07-27 02:03:11 +02:00
c3d87e2200
Merge pull request #117 from KevinMidboe/snyk-fix-9429d5dfb86996c66ac12aef1a5178b1
Kevin2019-07-27 01:58:33 +02:00
e391ce7ef9
Merge pull request #112 from KevinMidboe/snyk-fix-5oeu5e
Kevin2019-07-27 01:58:07 +02:00
ca707078d9
Merge branch 'master' into snyk-fix-5oeu5e
#112
Kevin2019-07-27 01:57:08 +02:00
81e9fe5b15
Testing for a running application is a bit weird, disabling it for now
KevinMidboe2019-07-27 01:42:44 +02:00
5d2e375213
Upgraded node version for travis from 8 to 11
KevinMidboe2019-07-27 01:34:15 +02:00
7ede37039a
info-success-response is now a list so need this reflected in this test also. Changed the port we test for to whats in our config/test.jsono
KevinMidboe2019-07-27 01:30:08 +02:00
8e23ae5a27
Added babel for ES6 functionality. In this case the new import statements
KevinMidboe2019-07-27 01:28:41 +02:00
04ba094a14
Throw more errors and cleanup some unmerged code
KevinMidboe2019-07-26 21:55:59 +02:00
23f9911237
Throw errors when failing to create user
KevinMidboe2019-07-26 21:54:13 +02:00
3b27af1f83
Error handling for themoviedb api response codes that are not 200. Started with 401 and 404. See issue #116 for info.
KevinMidboe2019-07-26 21:52:20 +02:00
afb7af46b8
The test uses the cached to not need to query themoviedb, but the function that would in prod now saves a Class containing movie result and extras such as credits.
KevinMidboe2019-07-26 21:09:58 +02:00
135375cb94
instead of "describe" "xdescribe" was defined which made the test pending in results. This has now been resolved.
KevinMidboe2019-07-26 21:06:45 +02:00
e5d5bdefd6
Updated cache key and cleaned up formatting
KevinMidboe2019-07-26 21:05:45 +02:00
6f9ca9e067
Added package and commands for generating documentation and upgraded mocha
KevinMidboe2019-07-26 20:56:13 +02:00
144b27f128
Renamed token variable from user to username
KevinMidboe2019-07-25 00:23:32 +02:00
12afbf6364
Tokens can also have a admin property. When admin is defined its included in the jwt token.
KevinMidboe2019-07-25 00:13:28 +02:00
8a5ab204e1
Change node bcrypt package from bcrypt-nodejs to bcrypt. Change response message on invalid username/pass and changed to bcrypt syntax for compare and hash.
KevinMidboe2019-07-24 22:54:04 +02:00
3f04d9bc56
Update script for updating all plex statuses of requestes.
KevinMidboe2019-07-16 18:50:27 +02:00
de50805d1e
Handle both status code 301 and 302 from jackett
Kevin Midboe2019-07-15 18:16:46 +02:00
3845000b3f
Allow filtering for requested items by status
Kevin Midboe2019-06-28 23:32:11 +02:00
071fd54825
Pages for requests are only calulated for items not yet downloaded and use ceil isteadof floor to get last items on a page
Kevin Midboe2019-06-28 22:51:09 +02:00
d3bc854e03
Pirate repository has relative and use virtuale python when running python commands
Kevin Midboe2019-06-28 22:44:39 +02:00
15826a00ba
plexRepo now using class instance plexIp address
Kevin Midboe2019-06-28 22:42:11 +02:00
4019d63f3b
Created example config and added development config to gitignore
Kevin Midboe2019-06-28 22:39:24 +02:00
91dcfaccb9
Rewrote posting request controller to handle body parameters and use new requestsRepository function istead of plexRepository functions
Kevin Midboe2019-06-28 22:31:52 +02:00
270a259cee
Request list also gets and returns total pages
Kevin Midboe2019-06-28 21:51:43 +02:00
162d20ae52
Submitting requests now use requests repository
Kevin Midboe2019-06-28 21:51:11 +02:00
1a1a7328a3
Map results with total_results before returing. TODO this should be mapped with all wanted list return vars
KevinMidboe2019-06-04 23:54:39 +02:00