31b0c998a8
Removed filter option when searching jackett
2022-01-03 19:28:50 +01:00
9ce5b476ef
Prettierrc file
2022-01-03 19:28:42 +01:00
554f292e4c
Don't fail request when plex failes existance check
2022-01-03 19:28:09 +01:00
d8985aaff7
Correctly use username from req.loggedInUser
2022-01-03 19:17:27 +01:00
be889b8100
Lining
2022-01-03 19:06:11 +01:00
b5bd672f44
More accurate checks for what response contains and throws error if it does not exist.
2022-01-03 18:38:32 +01:00
4501bc5302
Updated yarn lock file
2022-01-03 18:33:45 +01:00
b384e748af
Updated and moved update requests to /scripts
2022-01-03 18:32:48 +01:00
c676f182b4
Cache time in HR & future cache bust function
2022-01-03 18:31:28 +01:00
95d2b0095b
Linting
2022-01-03 18:23:49 +01:00
8165cf8e85
Keep whitespace when sanitizing string
2022-01-03 18:04:10 +01:00
14775744b0
Linting
2022-01-03 18:03:53 +01:00
559e32c059
Use list index 1 results
2022-01-03 18:02:58 +01:00
f4dbaf4c58
Translate symbol + to space in query
2022-01-03 18:02:45 +01:00
1d25914ae0
Linting
2022-01-03 17:56:00 +01:00
4d3d8c874c
Moved cors allowed origins to conf file.
2020-04-08 23:17:45 +02:00
08433523b7
Correctly export poster_path from person tmdb response object.
2020-04-08 23:09:37 +02:00
fce8879994
Searching with adult parameter is now handled and also cached correctly.
2020-04-08 23:08:42 +02:00
505b126043
Cleanup, removed comments and logs.
2020-04-08 23:07:09 +02:00
589bd7b08d
Better comparison between plex and tmdb. Now also checks if plexTitle starts with tmdbTitle.
2020-04-08 23:05:56 +02:00
f0049ffb4e
Merge pull request #129 from KevinMidboe/feat/redis-cache
...
Feat/redis cache
2020-04-08 23:04:06 +02:00
2b25397253
Misc updates to caching from plex and tmdb.
2020-04-08 23:01:33 +02:00
776f83553a
Changed more instances of tmdb to new TMDB constructor not needing cache instance anymore.
2020-04-08 22:59:23 +02:00
815aaedffb
Changed tmdb constructor to have apiKey as first parameter. If cache is not defined we use redis.
2020-04-08 22:54:19 +02:00
578eff30fb
Id of request has been incorrectly saved as string, this has dictated the returntype to the frontend. Now set from string to int.
2020-04-08 21:58:37 +02:00
943cbe5cb8
Return rejected promise and don't set cache if key or value is null.
2020-04-08 21:57:49 +02:00
f89db46bf2
findPlexItemByTitleAndYear returns a promise so we await its response.
2020-02-21 23:09:42 +01:00
085fb76e11
Cache pirate respons for 3 hours in redis.
2020-02-21 22:09:42 +01:00
aa4a1c2a57
Registed route watch-link, by title & year
...
Fetch watch link for plex item matching query parameters title and year.
2020-02-21 21:53:51 +01:00
74340afd16
Full re-write. Refactored, cache and watchlink.
...
- Now the api calls to plex are cached.
- Search function has been refactored.
- Exists in plex has been re-written to use findPlexItemByTitleAndYear
if anything is found we return true. findPlexItemByTitleAndYear is then
also used for our new endpoint to get direct watch link for plex item.
Function parameters are title and year. Title is used when querying plex
and year is used with title to match correct plex search result. The
direct link includes the machine identifier so a function was added to
get system information from plex (read: 'PLEX_URL/' e.g. base path).
2020-02-21 21:53:19 +01:00
2672266908
Simplified every function towards tmdb by having the shared functionality separated into a function.
2020-02-21 21:47:00 +01:00
f37786aa76
Redis cache script with get and set functions.
...
This replaces old way of caching to sqlite. Still have same
functionality, so users of old cache functions just need to rename their
import.
2020-02-21 18:11:39 +01:00
91f64e5cfb
Redis new dependency
2020-02-21 18:09:04 +01:00
a4d3123910
Stricter check for plex search results.
2020-01-16 21:25:45 +01:00
bc6fe3ed48
Encode search query before searching plex.
2020-01-16 21:25:13 +01:00
b23566509f
Merge pull request #128 from KevinMidboe/fix/match-list-plex
...
Fixed issue matching list of plex object to tmdb.
2020-01-16 21:22:34 +01:00
341a07621d
Fixed issue matching list of plex object to tmdb.
...
We have a Plex function that allows us to input a tmdb object and a plex
search result too see if the tmdb object has anything similar when
searching in plex.
Fixed an issue where plex returned a list of items. This list is now
mapped over each list element.
2020-01-16 21:21:40 +01:00
259ed9b06f
Error. Fixed capitalization of file name.
2019-12-25 21:12:29 +01:00
cddf06cbcc
Travis should make a copy of the example development config.
2019-12-23 02:08:20 +01:00
318d1e331b
Merge pull request #124 from KevinMidboe/feature/plex-authentication
...
Feature plex authentication
v1.1.1
2019-12-23 01:39:43 +01:00
5923cbf051
Incorrect query parameter. Changed from (the not defined) plex_userid to username.
2019-12-22 13:49:16 +01:00
291bdf089c
Forget to rename copied link function to unlink
2019-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.
2019-12-22 13:36:13 +01:00
f8847c62f2
UserRepository handles updating db settings better.
...
Moved the plex_userid to settings to expanded with functions for
updating and fetching settings, each with its own helper function
towards the database.
Since we had a linkPlexUserId function and we dont want plex_userid to
be updated from the updatesettings function we moved unlinking to a
separate endpoint and class function.
Also a new controller and endpoints for getting and updating settings.
2019-12-22 13:30:18 +01:00
ddb7e7379d
Every instance of sqlite database should have foreign_keys constraints on
2019-12-22 13:14:12 +01:00
720fb69648
Indentation
2019-12-22 12:45:01 +01:00
fedacf498e
Changed input parameter from name from user to username, cause we just get the username string.
2019-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.
2019-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.
2019-12-20 21:45:31 +01:00
a5248f0631
TODO comment for login
2019-11-25 23:38:52 +01:00