32 Commits

Author SHA1 Message Date
Roardom
ea1bdca818 update: store null for metadata id if they do not exist
And make it difficult / encourage users to submit the ids instead of leaving them empty.
2025-03-25 23:19:10 +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
HDVinnie
a364cf3954 Merge branch '8.x.x' into stream-sd 2025-03-09 00:14:06 -05:00
Roardom
5a6259cea7 remove: sd content and stream optimized flags
SD content is represented by the resolutions table now instead of this flag. Most people prefer web-dls over stream-optimized encodes these days.
2025-03-09 03:33:32 +00:00
Roardom
4c86dba091 fix: require/exclude anon/personal_release on torrent edit
Also refactor the other authorized booleans to exclude instead of prohibit and exclude original value from edit form.
2025-03-06 11:40:04 +00:00
HDVinnie
6e2c8f569d Merge pull request #4492 from Roardom/moderation-status-enum
(Refactor) Use moderation status enum and cast
2025-03-05 06:16:23 -05:00
Jay Sizzla
28a8779bcd Allow internal options for internals in non-internal group
Internals that are not member of the internal group (e.g. Editor) but not Moderator+ should still be able to set the internal options on their uploads.
Also, replace all group->is_internal with internals->exists in app & views.
2025-02-27 13:33:26 +00:00
Roardom
a447269552 refactor: use moderation status enum and cast
For consistency and less magic numbers hard coded everywhere.
2025-02-26 14:23:02 +00:00
Roardom
604b7e1937 add: spell check ci
Just an initial portion for now fixing incorrect text and preventing future incorrect text. Eventually, I'd like to fix everything still listed under "ignoredWords" in cspell.json.
2025-01-24 11:30:34 +00:00
HDVinnie
5e6a67e9f1 fix: StoreTorrentRequest rules() return type
- fixes failing phpstan ci
2024-06-13 21:16:12 -04:00
HDVinnie
2378a9f977 add: soft deletes to torrents
- this adds laravel's soft deletes functionality to torrents.
2024-06-13 20:58:19 -04:00
Jay
548a7e4d0b Don't alter limit for BDInfo 2024-05-28 08:16:54 +02:00
Jay Sizzla
66bb33a747 Validate StoreTorrentRequest with correct DB length 2024-05-27 19:51:47 +02:00
HDVinnie
00a9b1ddc2 Merge pull request #3857 from Roardom/fix-id-validation
(Fix) Allow `0000000`, etc. for id entry
2024-05-26 15:09:05 -04:00
Roardom
09e5e24d07 fix: allow 0000000, etc. for id entry
Fail less often for valid scenarios for users not familiar with the system.
2024-05-24 05:25:53 +00:00
Roardom
2e57262e97 fix: strict types phpstan errors 2024-05-23 15:38:35 +00:00
Roardom
b86475a732 add: strict types to all files 2024-05-23 13:58:29 +00:00
Roardom
2dd24b3fa1 fix: phpstan level 7 errors in Requests 2024-01-07 17:21:12 +00:00
Roardom
00be899977 fix: more reasonable torrent form max sizes 2024-01-02 12:46:34 +00:00
HDVinnie
3f03214e39 PHP Style Change (Laravel Pint CI) 2023-11-07 23:54:38 +00:00
HDVinnie
88d114c526 PHP Style Change (Laravel Pint CI) 2023-08-30 09:39:04 +00:00
Roardom
15b31c777e fix: add type hints to form requests 2023-08-26 08:42:00 +00:00
Roardom
f885dd4715 fix: bad mime detection
Many users often remove the announce url from uploaded torrents (since other tracker codebases are known to log urls of uploaded torrents to breach user accounts on other sites). This unfortunately causes the mime detection to sometimes (not all the time) fail preventing the user from uploading. Now that we're validating by file extension, it should still prevent the case of users accidentally uploading an unrelated file which was the main issue to be solved.
2023-07-24 00:22:01 +00:00
Roardom
61122c0d84 fix: validate nfo and torrent file extensions on upload 2023-07-22 05:39:43 +00:00
Roardom
9c69ff8b37 fix: torrent mimetype validation
If a user has never installed a BitTorrent client, then their OS would have never registered the `application/x-bittorrent` mimetype. Upon upload, the browser does not sent this mimetype as a result, which causes the validation to fail.
2023-07-15 09:45:10 +00:00
HDVinnie
1ea94f637b Merge pull request #2881 from Roardom/fix-meta-id-requirement
(Fix) Validate meta ids for the selected category
2023-07-10 12:09:52 -04:00
Roardom
0101b1d4cd fix: validate meta ids for the selected category 2023-07-10 09:15:32 +00:00
Roardom
741adef615 add: moderation scopes 2023-07-10 04:20:40 +00:00
Roardom
f493a04d55 fix: imdb should not be required to be an integer
Often, imdb ids are entered with prepended zeros which fail the validation.
2023-07-08 05:16:58 +00:00
HDVinnie
e442d738e6 PHP Style Change (Laravel Pint CI) 2023-07-07 03:30:38 +00:00
Roardom
0000838d8b refactor: cruddy torrents
Separate torrents into cruddy route names. Route model binding isn't possible due to the global scope on unapproved torrents. Use form requests. Simplify the controller flow where possible.
2023-07-07 03:18:13 +00:00