041e944783
Upgraded bcrypt & sqlite3
2022-08-15 23:36:02 +02:00
bfd31ebd23
Linting
2022-03-06 11:59:32 +01:00
5036f4ca36
Read and pass adult search query param consistently for movie, show & person info
2022-03-06 11:57:45 +01:00
61b59ae3ea
Person info now handles optional credits query parameter
2022-03-06 11:55:32 +01:00
92c49ac523
Registered endpoint for person credits
2022-03-06 11:54:56 +01:00
f680642f25
When fetching credits for person we get movie & show objects, now handled here.
2022-03-06 11:54:22 +01:00
f89486ae9e
Sepearate controller and tmdb function for fetching personCredits
2022-03-06 11:53:45 +01:00
4d853565d1
Person gets biography & place_of_birth attributes
2022-03-06 11:50:20 +01:00
91c81e5cf6
Use cookie-parser, updated tokenToUser middleware & set logout endpoint
2022-03-06 10:39:34 +01:00
0ecbde9675
Logout endpoint for deleting auth cookie
2022-03-06 10:36:24 +01:00
d8e951c2ef
Can now pass settings to new Token.
2022-03-06 10:34:48 +01:00
90f3d86511
Removed unused Promise resolves
2022-03-06 10:34:39 +01:00
c6791a7027
Login and register builds and sets cookie auth token
2022-03-06 10:31:58 +01:00
5b6a2c2651
Linting
2022-03-06 10:27:09 +01:00
4f7a22fff1
New tokenToUser middleware checks both header and cookie for Auth token
2022-03-06 10:17:56 +01:00
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