Commit Graph

302 Commits

Author SHA1 Message Date
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
09f8404ada Merge pull request #4559 from Roardom/igdb-int 2025-03-16 17:32:40 -04:00
Roardom
7889c71618 refactor: use unsigned int for igdb
Use the correct type for the external id.

Step 3 in cleaner meta fetching code.
2025-03-16 20:58:30 +00:00
HDVinnie
49c31d3515 Merge pull request #4557 from Roardom/game-meta-auto 2025-03-16 16:30:29 -04:00
Roardom
24ed359288 fix: auto fetch igdb metadata on torrent/request create/update 2025-03-15 13:47:59 +00:00
Roardom
494afca0d7 fix: torrents uploaded by mods via api automatically featured 2025-03-13 21:32:34 +00:00
HDVinnie
2a3a718dfe Merge pull request #4553 from Roardom/game-db
(Refactor) Save igdb games to the database
2025-03-12 21:29:17 -04: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
b9dfd3e6dd update: show category name instead of Movie/TV in quick search
For when there exists multiple categories of the same meta.
2025-03-10 11:42:09 +00: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
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
HDVinnie
2cbdd3553a Merge pull request #4513 from Roardom/fix-storage
(Fix) Torrent files storage disk
2025-03-04 21:42:38 -05:00
Roardom
2357db36a3 fix: torrent files storage disk
Regression from #4497
2025-03-01 03:54:31 +00:00
HDVinnie
7c4a0e84ac PHP Style Change (Laravel Pint CI) 2025-02-27 13:36:46 +00:00
Jay Sizzla
ba1818be0c Fix spell CI 2025-02-27 13:33:54 +00: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
ab0851f73a update: upgrade to phpstan 2 2025-02-24 17:19:39 +00:00
Roardom
b2e29cfcf0 fix: migrate boolean columns to tinyint(1)
These columns were previously tiny ints without the (1) display width or regular ints, or smallints. They should all be tinyint(1).
2025-02-19 06:25:21 +00:00
HDVinnie
c48d062a75 Merge pull request #4469 from Roardom/normalize-featured 2025-02-18 10:32:14 -05:00
HDVinnie
ae1d16f237 Merge pull request #4479 from Roardom/improve-quick-search 2025-02-15 08:19:53 -05:00
Roardom
aa57a375cd update: add fallback images to quicksearch 2025-02-13 23:18:15 +00:00
Roardom
8e455ef448 fix: api chat controller json return types
Makes static analysis happy.
2025-02-11 06:06:17 +00:00
Roardom
df9fa5004c fix: normalize torrent featured flag
When the featured flag goes out of sync with the featured_torrents table (for reasons still unknown), the torrent is permanently labeled as freeleech, while 100% of traffic is always credited.
2025-02-10 17:47:12 +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
9ea8838cc6 add: prefix option 2025-01-01 16:05:58 -05:00
HDVinnie
e71b28c588 Merge pull request #4358 from Roardom/modq-order
(Fix) Order torrent creation from most to least important
2024-12-02 08:38:47 -05:00
HDVinnie
192b5ed15d chore: remove unused imports that pint is missing 2024-12-01 20:52:32 -05:00
Roardom
e7c369002e fix: order torrent creation from most to least important 2024-12-01 19:51:20 +00:00
HDVinnie
c82d70c249 PHP Style Change (Laravel Pint CI) 2024-11-12 21:08:34 +00:00
HDVinnie
c09dff69be add: personal user api
- wiki updated https://github.com/HDInnovations/UNIT3D-Community-Edition/wiki/Torrent-API-(UNIT3D-v8.3.4)
2024-11-12 16:07:22 -05:00
HDVinnie
af21147802 remove: hdvinnie/laravel-html-purifier in preparation for octane 2024-10-22 22:10:43 -04:00
HDVinnie
2529f646ee Merge pull request #4250 from Roardom/torrent-bool-refundable 2024-10-20 09:55:01 -04:00
Roardom
e740769299 fix: use bool for torrent/group refundable instead of int 2024-10-20 10:41:30 +00:00
Roardom
e75de5d546 update: allow editors to use sql searching 2024-10-19 18:43:09 +00:00
HDVinnie
c63c27924a fix: QuickSearch Controller
- allow searching by TMDB and IMDB ids
2024-10-18 08:30:04 -04:00
HDVinnie
c9dc4d6875 Merge pull request #4209 from HDInnovations/AIO-Quickseach
(Refactor) AIO Quicksearch
2024-10-16 08:49:45 -04:00
HDVinnie
9c2bb17aa1 update: QuickSearch Controller
- refactor logic to simpler approach
2024-10-15 22:48:55 -04:00
HDVinnie
92662ff77e update: QuickSearchController
- use meilisearch php client directly and not scout.
- use MultiSearchFederation
- ability to search by meta ids
2024-10-15 20:38:52 -04:00
Roardom
85eb7c366d fix: provide null for next page when no more results 2024-10-10 08:00:14 +00:00
Roardom
3e5f475a56 fix: broken api compatbility when no torrents found
There was always a null check here to return 404 when no torrents are found. But this null check was always comparing against a paginator instance... which would never be true. So when I changed it to an isEmpty when I changed the query from a database query to a meilisearch query, and thought that was the correct thing to do to make sure a 404 is still returned, that was incorrect, because a 404 was never returned in the first place. An empty array is proper here.
2024-10-08 11:33:14 +00:00
HDVinnie
ee8889d0d9 refactor: quicksearch
- refactored from livewire to alpinejs
- this is a crudish draft but is fullly functional
- script should be moved to own alpine component in js dir
- person command and filter is simply a test and works
- fixes long time safari issue when click result just closes search and doesnt direct to URL by following:

@click.prevent Directive: Added @click.prevent="navigateTo(result.url)" to the anchor tag to handle the click event and navigate to the URL.
navigateTo Method: Added a navigateTo method in the quickSearch function to change the window location to the clicked URL.
Event Listener: Updated the init method to add a click event listener that stops propagation and navigates to the URL.
2024-10-07 21:44:04 -04:00
HDVinnie
64107b3776 Merge pull request #4164 from Roardom/revert-api-torrent-resources
(Update) Don't query database in filter api take 2
2024-10-02 18:00:25 -04:00
HDVinnie
f86f3239ea Merge pull request #4185 from Roardom/destroy-deleted-message 2024-09-29 07:09:51 -04:00
Roardom
ad48d9bfb8 fix: check message existence before deletion 2024-09-29 05:32:20 +00:00
HDVinnie
ede8c563a3 fix: condition check 2024-09-22 12:43:09 -04:00
Roardom
d9f834d949 fix: fix backwards compatibility of api datetime format
The original format included microseconds as well.
2024-09-22 10:00:12 +00:00
Roardom
f8b31e2cdd fix: auth caching api between users
Don't cache rsskeys of users and provide the responses to other users.
2024-09-22 10:00:12 +00:00
Roardom
b313751581 Revert "revert: #4131"
This reverts commit 1bd9fbab12.
2024-09-22 10:00:12 +00:00