Commit Graph

58 Commits

Author SHA1 Message Date
mjrode
dfe5c34978 WIP: Building out error handling. 2019-03-03 21:19:10 -06:00
mjrode
b24b19f398 Format TDAW response to only show results. 2019-03-03 02:02:22 -06:00
mjrode
e5b04f61db TDAW get similar request and tests. 2019-03-03 01:46:46 -06:00
mjrode
a25871479b Compose TDAW url test. 2019-03-03 01:16:18 -06:00
mjrode
830f232f4b Compose TDAW url 2019-03-03 01:12:46 -06:00
mjrode
5b3b91a109 Initial commit for TDAW, compose mediaUrl. 2019-03-03 01:08:33 -06:00
mike.rode
e9c0540ff1 Add error handler helper. 2019-03-01 10:07:53 -05:00
mike.rode
ba06787a3b WIP: Writing tests for error handling 2019-03-01 10:07:52 -05:00
mike.rode
2d9f4a23b9 Refactor how plexApi query params are handled.
Add additional tests for plexApi
Add import all endpoint.
2019-03-01 10:07:51 -05:00
mike.rode
cf16fb3bde Add error handling for plexApi 2019-03-01 10:07:51 -05:00
mike.rode
73552b09a4 Fix most watched url, replace sectionKey with type. 2019-03-01 10:07:50 -05:00
mike.rode
cf452fb5ff Add fixtures for most watched movies. 2019-03-01 10:07:49 -05:00
mike.rode
dc74093c8c Remove dependency on express req object in plexApi and importData.
Refactor importMostWatched to return resolved promises and update tests.
2019-03-01 10:07:49 -05:00
mike.rode
a24cc4df00 Revert user auth logic. 2019-02-27 19:23:28 -06:00
mike.rode
6b747477ae Use Promise.map for importing most watched and add tests. 2019-02-27 19:21:32 -06:00
mike.rode
735be2e0c4 Use Promise.map to import libraries. 2019-02-27 18:59:08 -06:00
mike.rode
d270031d86 Use Promise.map for importing sections. 2019-02-27 18:50:33 -06:00
mike.rode
dd025913a5 Use bluebird Promise.all instead of async/await. 2019-02-27 14:10:14 -06:00
mike.rode
b82cb7f8eb WIP: User auth 2019-02-27 13:42:18 -06:00
mike.rode
cfadb7432d Export all nocks to separate file. 2019-02-24 14:54:15 -06:00
mike.rode
d5aa633625 Refactor plexApi tests to use nocks file. 2019-02-24 14:00:38 -06:00
mike.rode
b8d6eecb0f Gitignore coverage, additional db config. 2019-02-24 13:15:42 -06:00
mike.rode
eb75d01710 Move all DB dependencies to DB folder. 2019-02-24 12:59:26 -06:00
mike.rode
0fe23657de Import library test. 2019-02-24 02:09:31 -06:00
mike.rode
d73afedec9 Added section upsert and import section test. 2019-02-24 01:39:22 -06:00
mike.rode
effc7e5a6d Add DB association between library and user. 2019-02-24 00:06:29 -06:00
mike.rode
6bd9d474fc Fixed db table names. 2019-02-24 00:04:43 -06:00
mike.rode
ce42528377 Setup migrations, associations, database config. 2019-02-23 23:27:35 -06:00
mike.rode
c33750bc0c Extracted plex service functions to a helper file. 2019-02-23 20:42:22 -06:00
mike.rode
4030f1a324 Remove API folder structure. 2019-02-23 20:26:05 -06:00
mike.rode
32a6cfbad4 Add test for authentication endpoint. 2019-02-23 18:29:18 -06:00
mike.rode
2a32fd445d Refactor plexApi to remove class dependency. 2019-02-19 18:51:56 -06:00
mike.rode
d789d343af Add auth module. 2019-02-18 15:19:54 -06:00
mike.rode
7ec224b192 WIP (Need to refactor) - Add import view count for 6 top most watched shows 2019-02-15 02:47:21 -06:00
mike.rode
3820029a98 Use upsert when importing libraries. 2019-02-15 01:39:32 -06:00
mike.rode
946da955d3 Use restful routing for importing. 2019-02-15 00:32:05 -06:00
mike.rode
fd4846379b Use env file to set plex token. 2019-02-14 23:59:13 -06:00
mike.rode
229d981d80 Import libraries into postgres DB. 2019-02-14 00:11:25 -06:00
mike.rode
0853a73ff4 Add sequelize, user model, and plexLibrary model. 2019-02-13 21:23:13 -06:00
mike.rode
b0b9fffeb8 Add test for getLibraryDataBySection. 2019-02-13 19:36:57 -06:00
mike.rode
1b58de675b Test getMostWatched by account. 2019-02-13 18:43:24 -06:00
mike.rode
cecc4db9e6 Extract format response to helper function. 2019-02-13 18:03:43 -06:00
mike.rode
d9aa5d8dae Refactor mostWatched query to accept query object instead of individual arguments. 2019-02-13 17:37:59 -06:00
mike.rode
652973f228 Add endpoint and tests for Plex sections. 2019-02-13 01:32:21 -06:00
mike.rode
ca92855171 Endpoint for most watched and tests. 2019-02-13 00:57:04 -06:00
mike.rode
066d05b1be Check header type and parse XML to JSON if content-type is XML. 2019-02-13 00:42:03 -06:00
mike.rode
f4fee56397 Parse getUsers response. 2019-02-13 00:01:11 -06:00
mike.rode
4b282c3c03 Refactor tests to import mock XML and JSON from files. 2019-02-12 23:49:42 -06:00
mike.rode
5036222439 Add getUsers endpoint for plexApi. 2019-02-12 22:52:24 -06:00
mike.rode
749b396d63 Export instance of PlexApiClient instead of class constructor. 2019-02-12 20:57:29 -06:00