Commit Graph

191 Commits

Author SHA1 Message Date
Roardom 5e6eeadc61 fix: case insensitivity duplicate checking in keyword upsert
We were deduping keywords, but we were only checking for exact duplicates. Now we check for case insensitive duplicates, and make sure to update the duplicates on upsert instead of treating the upsert as an insert. Fixes #3412.
2024-01-24 04:51:38 +00:00
Roardom 5c57979d4a add: adult filter to advanced torrent search 2024-01-22 09:54:01 +00:00
Roardom 29b16a1e2f fix: missing mediainfo returning empty string instead of null 2024-01-16 02:26:42 +00:00
Roardom 575729e805 fix: larastan errors in Helpers\TorrentTools.php 2024-01-03 03:21:46 +00:00
Roardom 5fd8ac8733 update: enforce max torrents per page 2024-01-01 17:06:03 +00:00
Roardom fc953a1985 add: filter torrent search by primary language 2023-12-27 11:39:12 +00:00
HDVinnie 3f03214e39 PHP Style Change (Laravel Pint CI) 2023-11-07 23:54:38 +00:00
HDVinnie 656647649f Revert "cleanup: pt.2"
This reverts commit 33d9927abd.
2023-10-12 23:11:20 -04:00
HDVinnie 33d9927abd cleanup: pt.2 2023-10-12 22:41:46 -04:00
HDVinnie 4ce90b163f PHP Style Change (Laravel Pint CI) 2023-10-13 02:31:58 +00:00
HDVinnie b3f0386149 cleanup: pt.1 2023-10-12 22:30:52 -04:00
Roardom cea35dc5d2 fix: validate user permissions when uploading torrents via api 2023-10-07 06:03:44 +00:00
Roardom 5fc28983a6 fix: redundant movie db query for tv api calls
Tv torrents don't have the `movie` relation eager loaded so it will try and fetch the `movie` relation if it's not eager loaded. Since we don't care about movies on a tv torrent, use a variable that doesn't have the same name as a relation so that it can't get loaded.
2023-09-09 07:19:43 +00:00
HDVinnie 88d114c526 PHP Style Change (Laravel Pint CI) 2023-08-30 09:39:04 +00:00
Roardom 2ca7adbbe5 fix: various larastan controller issues 2023-08-25 09:13:18 +00:00
Roardom a262891921 update: torrent upload keywords and files
Reduce n+1 queries, fix float being passed to `chunk` instead of int, fix incorrect column name (`torrent_id` is the correct one)
2023-08-23 03:22:56 +00:00
Roardom 40d8934abf update: don't store announce url in torrent file
We previously overwrote the provided PID, but all we need to do is just delete it.
2023-07-31 05:24:26 +00:00
Roardom 4c4583bc86 add: torrent folder name to files list 2023-07-30 04:29:29 +00:00
Roardom 4f95933797 update: use eager loading in torrent api 2023-07-23 10:49:28 +00:00
Roardom 9d4789ba91 refactor: require whitespace before statements 2023-07-07 00:27:13 +00:00
Roardom ff4e0854a7 update: implement basic caching for api 2023-04-10 01:11:29 +00:00
Roardom ae81678287 update: optimize api
Make pagination opt in by default

Stop calculating thanks and comment count for the API since it's not used for anything
2023-04-10 00:39:24 +00: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 1dd60acb6d PSR12 Linting 2023-01-07 04:44:46 +00:00
Roardom 54220dcfc8 remove: slugs 2023-01-06 16:05:53 -06:00
HDVinnie d0b2ba5f94 update: torrent api 2022-11-17 21:12:43 -05:00
HDVinnie f6bf6a326e PSR12 Linting 2022-09-11 23:54:18 +00: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 416c4473f3 Merge pull request #2254 from Roardom/fix-regex
(Fix) torrent search regex
2022-06-02 22:06:58 -04:00
Roardom 12308456c2 fix: torrent filter trait regex 2022-06-02 04:33:44 -05:00
HDVinnie 71d833674b Merge pull request #2251 from HDInnovations/shift-build-3080
(Refactor) Use Laravel Carbon
2022-06-01 09:03:37 -04:00
StyleCI Bot e292545306 Apply fixes from StyleCI 2022-05-31 22:06:07 +00:00
Shift be2d37ed6e Use Illuminate\Support\Carbon 2022-05-31 22:05:34 +00:00
Roardom f1bb84b90b fix: torrent filter type hints 2022-05-31 16:57:02 -05:00
HDVinnie 357fed48a4 fix: torrent api 2022-05-29 23:37:45 -04:00
clandestine8 8557044be3 fix: torrent api and rss contollers 2022-05-29 21:16:42 -04:00
HDVinnie 88f2e6077e update: torrent tools
- cleanup torrent controllers
- optimize parseKeywords function

Co-Authored-By: Roardom <78790963+Roardom@users.noreply.github.com>
2022-05-26 23:07:40 -04:00
StyleCI Bot d5595c45d8 Apply fixes from StyleCI 2022-05-27 00:57:02 +00:00
Roardom 4726d5c555 refactor: torrent search filters into trait 2022-05-25 05:03:49 -05:00
Jay 30985fa6c3 Fix free leech amount when featured
Set free to be 100 if the torrent is featured using the api
2022-04-24 11:22:38 +02:00
HDVinnie ee3eb64650 update: torrent api controller 2022-03-09 15:21:20 -05:00
HDVinnie 594b7864d9 refactor: adopt new helpers in laravel 9 2022-03-06 17:20:05 -05:00
HDVinnie bdd63aa816 update: controllers 2022-02-28 05:06:55 -05:00
HDVinnie 5febce249e update: torrent api controller 2022-02-03 18:29:44 -05:00
HDVinnie 89878e7557 update: torrent api controller 2022-02-03 14:16:19 -05:00
HDVinnie dd19889ee6 Merge branch '6.x.x' into Code-Style 2022-01-10 17:03:50 -05:00
HDVinnie 5e01a26c88 optimize: whereIn and whereNotIn queries 2022-01-10 16:25:26 -05:00
HDVinnie d3abd28925 update: type hints 2022-01-08 15:35:53 -05:00