Commit Graph

  • 1b08c8d3d1 Now when running tests we use a separate config file test.json KevinMidboe 2018-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. KevinMidboe 2018-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. KevinMidboe 2018-03-20 19:25:35 +01:00
  • 0581813ee3 Merge pull request #92 from KevinMidboe/api_filterBug v1.0.1 Kevin 2018-03-20 13:17:17 +01:00
  • edf1de223e When filtering the request on status the sql query for the db did not sort DESC. #92 KevinMidboe 2018-03-20 13:11:26 +01:00
  • 7595b6df25 Update README.md v1.0.0 Kevin 2018-03-19 17:03:03 +01:00
  • 04ec0e0785 Update README.md Kevin 2018-03-19 17:02:02 +01:00
  • b08dc899c3 Update ISSUE_TEMPLATE.md Kevin 2018-03-19 16:32:03 +01:00
  • aafe524681 Merge pull request #90 from KevinMidboe/testing Kevin 2018-03-19 16:28:44 +01:00
  • 40b7ceda5f The name of the teardown.sql file was renamed, reverted to correct name. #90 KevinMidboe 2018-03-19 16:23:58 +01:00
  • 8850f06e3e Updated travis config. KevinMidboe 2018-03-19 16:15:31 +01:00
  • 972dcf4aab Merge pull request #84 from KevinMidboe/api_request Kevin 2018-03-19 15:46:18 +01:00
  • 8e0eff7120 Merge branch 'master' into api_request #84 Kevin 2018-03-19 15:46:07 +01:00
  • e092eae60a The retrieveHash and changePassword functions now return promises. KevinMidboe 2018-03-19 15:43:48 +01:00
  • 424cf0985d Added test for registering when user is already registered. KevinMidboe 2018-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. KevinMidboe 2018-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. KevinMidboe 2018-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. KevinMidboe 2018-03-19 15:24:42 +01:00
  • e27d5c7084 We use the db instance globally with establisheddatabase. KevinMidboe 2018-03-19 15:23:54 +01:00
  • 4ab3946181 Added testing variable, this uses :MEMORY: database when running tests. KevinMidboe 2018-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. KevinMidboe 2018-03-09 13:37:23 +01:00
  • d8078570eb Changed the sort order when selecting all from requests. KevinMidboe 2018-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. KevinMidboe 2018-03-08 16:35:17 +01:00
  • a69e2d9bbb Merge pull request #88 from KevinMidboe/submodules Kevin 2018-03-08 14:31:21 +01:00
  • 72a7a7e00d Changed path to new submodule location. #88 KevinMidboe 2018-03-08 14:25:28 +01:00
  • 50d3135a81 Moved submodule to parent directory. KevinMidboe 2018-03-08 14:15:25 +01:00
  • 9e557759ce deleted old submodule app. KevinMidboe 2018-03-08 14:07:57 +01:00
  • 1806f89e2b Imported submodule from scratch again. KevinMidboe 2018-03-08 13:59:43 +01:00
  • 9140fa37eb Deleted gitmodules and include folder. KevinMidboe 2018-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. KevinMidboe 2018-03-08 13:48:52 +01:00
  • 3abd7ddc61 Fixed merge conflict to newer SQL statements KevinMidboe 2018-03-08 10:38:56 +01:00
  • 6a7b427ef3 Changed cache TTL to 3 hours. KevinMidboe 2018-03-08 10:36:13 +01:00
  • 8fbd0eb9d8 Also unpacks the value of username before passing it to searchHistory. KevinMidboe 2018-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. KevinMidboe 2018-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. KevinMidboe 2018-03-08 10:30:39 +01:00
  • 72847efb93 Update ISSUE_TEMPLATE.md Kevin 2018-03-08 02:27:17 +01:00
  • 7801ea5d05 Create ISSUE_TEMPLATE.md Kevin 2018-03-08 02:26:02 +01:00
  • 37474de848 Changed to resolve and reject the result from tmdb. And first get the username before sending user to another functoin. KevinMidboe 2018-03-07 18:14:07 +01:00
  • 1a4aefda14 Get the user variable from req not req.headers KevinMidboe 2018-03-07 18:12:21 +01:00
  • 40b539db68 Reversed the sorting direction. KevinMidboe 2018-03-07 15:37:39 +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. KevinMidboe 2018-03-07 15:35:55 +01:00
  • ab2d3c6756 Renamed function name and now returns 500 error when a problem is found. KevinMidboe 2018-03-07 14:57:18 +01:00
  • 69e694493c updating submodule to latest KevinMidboe 2018-03-07 09:58:54 +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. KevinMidboe 2018-03-07 01:37:42 +01:00
  • ba96e27c43 Alongside the token the value of admin state is also sent. KevinMidboe 2018-03-07 01:35:40 +01:00
  • 858f3f5d57 Can now get user admin status. KevinMidboe 2018-03-07 01:30:28 +01:00
  • 59b206bf2d Forgot a leading / KevinMidboe 2018-03-06 22:13:53 +01:00
  • fac9e0e425 Added a endpoint to fetch a random emoji. KevinMidboe 2018-03-06 22:02:32 +01:00
  • e65d4125b9 Trying to sort on the wrong column name. KevinMidboe 2018-03-06 21:27:31 +01:00
  • 354b833375 Removed console log of table data. KevinMidboe 2018-03-06 21:24:18 +01:00
  • cffba202b0 Now the server does not crash when unable to search plex. KevinMidboe 2018-03-06 19:33:22 +01:00
  • d3b4a34298 Re-added filter options for later use. KevinMidboe 2018-03-06 19:32:51 +01:00
  • 164191f89d Fixed indentation and updated sqlite to sqlite3! 🚀 KevinMidboe 2018-03-06 19:32:21 +01:00
  • 02c36d041a Removed console.log and fixed docstring comment. KevinMidboe 2018-03-06 19:30:11 +01:00
  • 404c200474 Removed unused mail conf and added a function for getting all requested elements by loggedInUser. KevinMidboe 2018-03-06 19:29:21 +01:00
  • aa0094762b Now save only the username of the user in search history. KevinMidboe 2018-03-06 19:27:18 +01:00
  • 7c4aeb48ab When registering a token is also returned so we dont need to sign in after registration. KevinMidboe 2018-03-06 19:26:28 +01:00
  • ca146d77bc Fixed error message KevinMidboe 2018-03-06 19:25:33 +01:00
  • cede376349 Was not using the registered loggedInUser variable, but one passed by client KevinMidboe 2018-03-06 19:24:58 +01:00
  • e11dfc7712 Renamed class name. KevinMidboe 2018-03-06 19:23:11 +01:00
  • 1a693ef92f Our new controller for getting a users requested items. KevinMidboe 2018-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. KevinMidboe 2018-03-06 19:20:32 +01:00
  • 6619184a45 When creating a account the email field is now optional. KevinMidboe 2018-03-06 19:18:51 +01:00
  • 34a97c069b Updated from sqlite to sqlite3 now all functions are async so we wait for response. KevinMidboe 2018-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. KevinMidboe 2018-03-06 19:12:21 +01:00
  • 08b373cba0 Response results are now saved in the object results instead of torrents KevinMidboe 2018-02-26 19:58:54 +01:00
  • ec0923f1c0 Can now filter the response by status. KevinMidboe 2018-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. KevinMidboe 2018-02-26 16:59:56 +01:00
  • bf4cf8bef1 Merge pull request #83 from KevinMidboe/api Kevin 2018-02-07 15:56:40 +01:00
  • 1d8a72429d Merge branch 'api' of github.com:KevinMidboe/seasonedShows into api #83 Kevin Midboe 2018-02-07 15:53:52 +01:00
  • 528cbed30f Wasn't getting all the items because some elements do not have a media_type KevinMidboe 2018-02-07 15:53:27 +01:00
  • 7ee3ace83b Removed unused semicolon Kevin Midboe 2018-02-07 15:44:24 +01:00
  • ba69893e21 Removed static function. Kevin Midboe 2018-02-07 15:44:04 +01:00
  • ad4fa9d95a Fixed issue with types not being upheld when converting from tmdb objects. KevinMidboe 2018-02-07 15:40:39 +01:00
  • 28a731efbf Merge pull request #82 from KevinMidboe/testing Kevin 2018-02-07 14:41:05 +01:00
  • 878c71ef4a Merge pull request #81 from KevinMidboe/frontend Kevin 2018-02-07 14:38:16 +01:00
  • bd1e3c4455 Added test for checking popular shows list in tmdb. #82 KevinMidboe 2018-02-07 14:35:36 +01:00
  • 1be8bc0319 Merge branch 'master' of github.com:kevinmidboe/seasonedShows KevinMidboe 2018-02-07 14:25:31 +01:00
  • f0476b2890 Merge pull request #80 from KevinMidboe/linting Kevin 2018-02-07 14:24:43 +01:00
  • 72294e19c5 Merge pull request #79 from KevinMidboe/api Kevin 2018-02-07 14:22:50 +01:00
  • 30b494e356 The id used for searching was somehow not a movies id and returned false. #79 KevinMidboe 2018-02-07 14:20:34 +01:00
  • b037cb23a2 Updated test to reflect new tmdb response. KevinMidboe 2018-02-07 14:16:45 +01:00
  • 98b10aa693 Changed the api endpoint to one that requires to be logged in. KevinMidboe 2018-02-07 14:15:10 +01:00
  • 3ca3c06824 Removed static tag in tmdb functions. KevinMidboe 2018-02-07 14:13:50 +01:00
  • f6c504223a Now yarn lint lints all files in src not only webserver. #80 KevinMidboe 2018-02-07 13:53:15 +01:00
  • 93e1ef6d99 Linted app and server.js files. KevinMidboe 2018-02-07 13:52:39 +01:00
  • 58449fc753 Linted all middleware. KevinMidboe 2018-02-07 13:52:08 +01:00
  • 34982c14fe Linted all controllers KevinMidboe 2018-02-07 13:51:57 +01:00
  • 81aeed86ef Linted all pirate, git, tmdb and searchHistory scripts. KevinMidboe 2018-02-07 13:51:42 +01:00
  • a8ec7acff5 Linted all seasoned scripts. KevinMidboe 2018-02-07 13:51:02 +01:00
  • 74d143775b Linted all user files. KevinMidboe 2018-02-07 13:50:16 +01:00
  • dda1db6c5f Linted all plex scripts. KevinMidboe 2018-02-07 13:50:05 +01:00
  • 97217a2826 Linted all media_classes KevinMidboe 2018-02-07 13:49:37 +01:00
  • 272300249e Linted all database files. KevinMidboe 2018-02-07 13:49:22 +01:00
  • fe1ad2b1ad Linted all config files. KevinMidboe 2018-02-07 13:49:11 +01:00
  • 444295d5d1 Updated our eslint config file. Still extends airbnb, but have changed indent rule and dropped some other rules. KevinMidboe 2018-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. KevinMidboe 2018-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. KevinMidboe 2018-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. KevinMidboe 2018-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. KevinMidboe 2018-02-07 13:38:25 +01:00