1b08c8d3d1
Now when running tests we use a separate config file test.json
KevinMidboe2018-03-20 20:14:15 +01:00
9e145f7068
When testing we dont have api access so we create cache entries before each request. The cache key changed so this is now updated in the tests and tmdb.
KevinMidboe2018-03-20 20:12:49 +01:00
7051edb212
Added unit tests for testing config file for correct values and if not check the env variables.
KevinMidboe2018-03-20 19:25:35 +01:00
972dcf4aab
Merge pull request #84 from KevinMidboe/api_request
Kevin2018-03-19 15:46:18 +01:00
8e0eff7120
Merge branch 'master' into api_request
#84
Kevin2018-03-19 15:46:07 +01:00
e092eae60a
The retrieveHash and changePassword functions now return promises.
KevinMidboe2018-03-19 15:43:48 +01:00
424cf0985d
Added test for registering when user is already registered.
KevinMidboe2018-03-19 15:43:00 +01:00
ed5d302820
Stricter when running test, now we wait until resetdatabase and createuser are done in in the before function before running the tests.
KevinMidboe2018-03-19 15:27:11 +01:00
559ef1bc11
Before we create a db instance we check for testing flag is set and then use the :MEMORY: database for a anonymous db instance.
KevinMidboe2018-03-19 15:25:53 +01:00
9645fba4ef
Removed connect, connection is now a new sqlite instance, async run function, check for errors when executing and setup and teardown now return promises.
KevinMidboe2018-03-19 15:24:42 +01:00
e27d5c7084
We use the db instance globally with establisheddatabase.
KevinMidboe2018-03-19 15:23:54 +01:00
4ab3946181
Added testing variable, this uses :MEMORY: database when running tests.
KevinMidboe2018-03-19 15:22:33 +01:00
3a508b9843
Because we sort requests by date we want to use a finer measurement of time to sort more correctly.
KevinMidboe2018-03-09 13:37:23 +01:00
d8078570eb
Changed the sort order when selecting all from requests.
KevinMidboe2018-03-09 13:36:01 +01:00
47b499c072
Jackett sometimes returns a link to self that redirects to a magnet. The response is now parsed for if it is a link and gets the url it redirects to.
KevinMidboe2018-03-08 16:35:17 +01:00
a69e2d9bbb
Merge pull request #88 from KevinMidboe/submodules
Kevin2018-03-08 14:31:21 +01:00
1806f89e2b
Imported submodule from scratch again.
KevinMidboe2018-03-08 13:59:43 +01:00
9140fa37eb
Deleted gitmodules and include folder.
KevinMidboe2018-03-08 13:57:06 +01:00
6c062f5fc1
Changed gitmodules config file and moved the submodule from app to a new directory inculde. Also changed default search site to jackett.
KevinMidboe2018-03-08 13:48:52 +01:00
8fbd0eb9d8
Also unpacks the value of username before passing it to searchHistory.
KevinMidboe2018-03-08 10:33:04 +01:00
127db8b2fe
Errors when we have a user that was not signed in. Fixed to unpack the username value first, then pass it to the function.
KevinMidboe2018-03-08 10:32:19 +01:00
13401a318a
History was not wokring because upgrade to sqlite3. Now we do a stateless call to the database and reolve or reject the response.
KevinMidboe2018-03-08 10:30:39 +01:00
37474de848
Changed to resolve and reject the result from tmdb. And first get the username before sending user to another functoin.
KevinMidboe2018-03-07 18:14:07 +01:00
1a4aefda14
Get the user variable from req not req.headers
KevinMidboe2018-03-07 18:12:21 +01:00
453727db1b
Fixed issue where the user was not being saved alongside the request. Also fixed what the list of requests are sorted by.
KevinMidboe2018-03-07 15:35:55 +01:00
ab2d3c6756
Renamed function name and now returns 500 error when a problem is found.
KevinMidboe2018-03-07 14:57:18 +01:00
27c95375e2
Reverted back to only be authenticated beacuse something wrong with getting the correct user. Will replace with admin check as middleware when fixed.
KevinMidboe2018-03-07 01:37:42 +01:00
ba96e27c43
Alongside the token the value of admin state is also sent.
KevinMidboe2018-03-07 01:35:40 +01:00
1a693ef92f
Our new controller for getting a users requested items.
KevinMidboe2018-03-06 19:21:55 +01:00
2df734bb32
ADded endpoints for checking search history and the items a user has requested, both require authentication. Changed that searching for torrents now require being admin not just signed in.
KevinMidboe2018-03-06 19:20:32 +01:00
6619184a45
When creating a account the email field is now optional.
KevinMidboe2018-03-06 19:18:51 +01:00
34a97c069b
Updated from sqlite to sqlite3 now all functions are async so we wait for response.
KevinMidboe2018-03-06 19:16:10 +01:00
e6a8515432
Now we can check if user is admin. This has to be set manually and now only is used for fetching torrents.
KevinMidboe2018-03-06 19:12:21 +01:00
08b373cba0
Response results are now saved in the object results instead of torrents
KevinMidboe2018-02-26 19:58:54 +01:00
ec0923f1c0
Can now filter the response by status.
KevinMidboe2018-02-26 17:17:37 +01:00
4bc94ae3b7
When a element is not found in plex it now still gets a matchedInPlex value, now False when not found.
KevinMidboe2018-02-26 16:59:56 +01:00
bf4cf8bef1
Merge pull request #83 from KevinMidboe/api
Kevin2018-02-07 15:56:40 +01:00
1d8a72429d
Merge branch 'api' of github.com:KevinMidboe/seasonedShows into api
#83
Kevin Midboe2018-02-07 15:53:52 +01:00
528cbed30f
Wasn't getting all the items because some elements do not have a media_type
KevinMidboe2018-02-07 15:53:27 +01:00
444295d5d1
Updated our eslint config file. Still extends airbnb, but have changed indent rule and dropped some other rules.
KevinMidboe2018-02-07 13:47:11 +01:00
a40d4f7cd5
Removed movie and show in replacement with a common media.js and tmdb and plex that extend this media class.
KevinMidboe2018-02-07 13:44:26 +01:00
6fd65fdb23
Refactoring where now we can search lists and lookup movies or shows by using the new tmdbMethod function which takes the api endpoint variable and type to return the appropriate tmdbMethod name for the matching api call to tmdb. Removed a lot of the globally defined variables.
KevinMidboe2018-02-07 13:42:46 +01:00
7e874bbc9d
Now our convert scripts use our new plex and tmdb classes. Also compacted and abstracted a lot of the code here.
KevinMidboe2018-02-07 13:39:45 +01:00
6564948af8
Split up our plex and tmdb classes into more logical files with a common media class that it extends off of.
KevinMidboe2018-02-07 13:38:25 +01:00