26 Commits

Author SHA1 Message Date
Roardom
1c7ab37676 fix: refresh meta button
Previously, the button would check if the cache key doesn't exist, then if so, add the cache key. But the middleware of ProcessMovieJob and ProcessTvJob will skip the update if the cache key is present.

Change the logic so that only the Job adds the cache key.

fixes #4745
2025-06-07 17:39:57 +00:00
Roardom
7e96243186 fix: game similar page
Looks like the similar page for games broke, the query builder was never fetched.
2025-04-03 12:19:10 +00:00
Roardom
926747e905 update: collection on similar meta and collection posters
Show all movies in a collection that the current movie is in, in the similar meta. Also show movie posters instead of a collection card in the relations panel on the torrent page. Reorganize the relations so that plurals are correct and match the relation stored in the database. Even though there can be only one collection per movie as defined by tmdb, that's not the way the tables are stored and the queries are done, so use plural naming for now.
2025-04-02 09:16:32 +00:00
Roardom
ae33c74f2b refactor: prefix tmdb metadata models with tmdb
Will help for when there exists other metadata sources available (such as already done for igdb)

Step 4 in cleaner meta fetching code.
2025-03-17 20:41:01 +00:00
Roardom
32cf8da4db refactor: split tmdb into movie_id and tv_id
Step 2 in cleaner meta fetching code.
2025-03-16 22:55:24 +00:00
Roardom
8fde78124b refactor: save igdb games to the database
Step 1 towards cleaner meta fetching code.

Users with a game category must run `php artisan fetch:meta` after migration.
2025-03-11 19:48:25 +00:00
Roardom
868ad35aa4 refactor: swap magic RedirectResponse withX('Y') to with('X', 'Y')
Allows ctrl+clicking to access the underlying function unlike the previous magic implementation. Probably also negligibly faster.

Swapped all instances of `>withSuccess(` -> `>with('success', `, `>withWarning(` -> `>with('warning', `, and `>withInfo(` -> `>with('info', ` with ide's find and replace.
2025-01-21 16:05:11 +00:00
Roardom
33b85ea862 fix: allow refreshing metadata of requests when no torrent exists 2024-10-02 09:46:11 +00:00
Roardom
c6de2ec0b7 fix: similar torrent showing torrents where no meta exists 2024-06-04 10:48:03 +00:00
Roardom
b86475a732 add: strict types to all files 2024-05-23 13:58:29 +00:00
Roardom
78e3099e71 update: allow editors to bypass metadata rate limiter 2024-02-14 01:12:49 +00:00
HDVinnie
d5b4b3d7dd update: localize trailers
- performance increase by not having to query tmdb api.
- fixes issue where trailers were only loading on torrent details page and not views where meta partial is used like similar,requests,etc
2024-01-07 22:03:49 -05:00
HDVinnie
3f03214e39 PHP Style Change (Laravel Pint CI) 2023-11-07 23:54:38 +00:00
Roardom
2ca7adbbe5 fix: various larastan controller issues 2023-08-25 09:13:18 +00:00
Roardom
e21a0b359f update: allow any user to update movie/tv metadata 2023-07-29 08:04:56 +00:00
Roardom
bb5255d968 Revert "update: cache personal freeleech existence instead of its value"
This reverts commit b48a9222d1.
2023-07-28 06:08:55 +00:00
Roardom
b48a9222d1 update: cache personal freeleech existence instead of its value
We only cache it if it exists, so let's not query it every single time it doesn't exist.
We don't remove it from the hourly run command yet so that currently existing freeleeches can be deleted.
2023-07-25 22:48:56 +00:00
Roardom
d1e466759e add: refresh torrent metadata button 2023-07-12 06:44:19 +00:00
Roardom
d19bb4f2ea refactor: swap auth()->user()->id to auth()->id() 2023-07-07 00:28:47 +00:00
Roardom
9d4789ba91 refactor: require whitespace before statements 2023-07-07 00:27:13 +00:00
Roardom
7e1bb1ad5b update: new metadata redesign 2023-03-19 18:48:55 -05:00
HDVinnie
3650900c97 update: lint
- not_operator_with_space to false
2023-02-03 16:01:29 -05:00
HDVinnie
472c820f99 update: UNIT3D linting
- github action updated with new ruleset in pint.json
- codebase linted with new ruleset
- contributors can now run `./vendor/bin/pint`
- action workflow will auto correct any lint issues upon commit/opened pull request
2023-02-02 08:02:34 -05:00
HDVinnie
2ca429c4ce Revert "PSR12 Linting"
This reverts commit 7e65e1d589.
2022-09-11 19:51:58 -04:00
HDVinnie
7e65e1d589 PSR12 Linting 2022-09-11 23:50:41 +00:00
HDVinnie
d73dd39818 refactor: crudify torrent controller
- routes to be cleaned up at end of controller refactors
2022-05-26 22:45:31 -04:00