Commit Graph

380 Commits

Author SHA1 Message Date
KevinMidboe 6564948af8 Split up our plex and tmdb classes into more logical files with a common media class that it extends off of. 2018-02-07 13:38:25 +01:00
KevinMidboe af64a4e28a Removed and clean up function and formatting. 2018-02-05 22:48:41 +01:00
KevinMidboe 3c263a1ae7 Now we have brand spanking new functions for lookup and searching. The idea here is to match tmdb items to plex counterparts. 2018-02-05 22:48:00 +01:00
KevinMidboe d8b2cef18f Removed filtering of items when searching tmdb. Also added total_results object to all return statements. 2018-02-05 22:46:10 +01:00
KevinMidboe 6f626d410d Rewrote most of this class. Now we have helper functions for getting info about items in plex. Used function is inPlex where we can input a tmdb item and it append if the item exsists in plex. 2018-02-05 22:44:57 +01:00
KevinMidboe cfb878fa64 Fixed issue where a item would not be returned when nothing was found matching query in plex. Also moved checkId up in the request. 2018-02-05 14:55:49 +01:00
KevinMidboe 44878a295c Merge branch 'api_fixes' of github.com:kevinmidboe/seasonedShows into api_fixes 2018-02-05 14:25:25 +01:00
KevinMidboe 9b0fa88a72 Changed docstring and removed the unused port variable. 2018-02-05 14:25:13 +01:00
KevinMidboe 80582f0022 Changed so that tmdb now gets its own type, tmdbtype 2018-02-05 14:23:40 +01:00
KevinMidboe 77d7167fcb Changed so that one must not be auth to get requested elements. This might change. 2018-02-05 14:22:44 +01:00
KevinMidboe eedfe4cf3f Changed schema to reflect changes movie title from name to title. 2018-02-05 13:48:16 +01:00
KevinMidboe cfedd4e9c8 Added ability to check if a element is previously been requested. Also changed the schema of db to store movies poster as poster_path and background as background_path. 2018-02-05 13:47:10 +01:00
KevinMidboe cefbb5e41c Added length of elements in return statement as total_results in api response. 2018-02-05 13:44:13 +01:00
KevinMidboe 89ec9d496b Changed the ip addres of plex server 2018-02-05 13:42:35 +01:00
KevinMidboe bd0c7b8ab5 Now also has size of the existing file. 2018-02-05 13:41:41 +01:00
KevinMidboe 0c3ad3a95e Fixed a issue where the tmdb type was not being selected correctly. (movie/show) 2018-02-02 11:51:13 +01:00
KevinMidboe 8285f14bfa Merge branch 'master' of github.com:kevinmidboe/seasonedShows 2018-01-09 22:51:26 +01:00
KevinMidboe 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
KevinMidboe aa1866bbd9 Fixed merge conflict regarding version of express 2018-01-09 17:05:02 +01:00
KevinMidboe bc0211e34f Moved eslint to devDep and updated express to 4.11 2018-01-09 17:02:03 +01:00
KevinMidboe 34a0c7f958 Merge pull request #72 from KevinMidboe/testing
Testing
2018-01-09 16:56:45 +01:00
KevinMidboe f6bd547701 Merge branch 'master' of github.com:kevinmidboe/seasonedShows 2018-01-09 16:55:09 +01:00
KevinMidboe 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
KevinMidboe d92e6d8c78 Psst. Removed console logs from debug hunt. 2017-12-21 01:01:43 +01:00
KevinMidboe 601440d540 Ok. I can explain this bug. It seems commenting out teardown in resetDatabase solves our issue that travis cannot find our teardown script eventough it outputs the exact path it should be at. Will come back to this as it seems it works everywhere else. Good night. 2017-12-21 01:00:47 +01:00
KevinMidboe b4352ad721 Too many ; bro 2017-12-21 00:53:38 +01:00
KevinMidboe 2623649c5d Tried to re-add teardown and updated it to drop only tables that are in the database. Crossing fingers for a second pass. 2017-12-21 00:46:52 +01:00
KevinMidboe 908fca6dd0 Trying to remove teardown between tests. 2017-12-21 00:42:44 +01:00
KevinMidboe 0459fb9312 More testing for this bug. 2017-12-20 23:18:13 +01:00
KevinMidboe 6a725e3921 Added tons of console.logs to try find out where the problem with travis not being able to read file lies. 2017-12-20 23:06:02 +01:00
KevinMidboe fb22576708 Travis is still not reading our teardown file. 2017-12-20 22:51:08 +01:00
KevinMidboe bced4e052d There was a weird thing with the file permissions so it would not be read by travis. Now it should be fixed 2017-12-20 22:42:53 +01:00
KevinMidboe 93e43d9954 Added a template development.json file for build purposes. 2017-12-20 22:22:25 +01:00
KevinMidboe fba3845523 Now we check if the values length is 0 not the filters varaible. 2017-12-20 22:17:45 +01:00
KevinMidboe fe64af856e Fixed a old bug. 2017-12-20 22:16:57 +01:00
KevinMidboe 625717f7ad Now when checking config file if the value is blank it checks env variables for a variable defined as uppcase section + option with a separator of _. 2017-12-20 22:16:36 +01:00
KevinMidboe e4573e6808 Forgot to remove path without test scripts yet. 2017-12-20 21:13:24 +01:00
KevinMidboe e19b604a78 Our teardown sql script. 2017-12-20 21:08:35 +01:00
KevinMidboe f6c27482e4 Added script for teardown of database. 2017-12-20 21:07:33 +01:00
KevinMidboe 00ad5cf7a8 Added mocha, istanbul and supertest packages. Added coverange and test script. 2017-12-20 21:07:13 +01:00
KevinMidboe 99ddb61c37 Started by adding some system tests for the api. 2017-12-20 20:47:32 +01:00
KevinMidboe 790f5d6588 Added travis support to api. 2017-12-20 20:46:15 +01:00
KevinMidboe 6011615a41 Merge pull request #68 from KevinMidboe/add-metadata-requests
Add metadata requests
2017-12-02 13:23:24 +01:00
KevinMidboe 7d44f1518f Updated gitignore to ignore conf folder and deleted the contents of conf. 2017-12-01 10:57:28 +01:00
KevinMidboe fa8f82449b Merge branch 'master' of github.com:KevinMidboe/seasonedShows 2017-12-01 10:49:08 +01:00
KevinMidboe f7b772a170 Changed the default cache TTL from 7 days to 2 days. 2017-12-01 10:46:50 +01:00
KevinMidboe 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
KevinMidboe db11c968a3 Renamed folder the plural. 2017-12-01 10:28:29 +01:00
KevinMidboe 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
KevinMidboe 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