Commit Graph

151 Commits

Author SHA1 Message Date
HDVinnie
bd54a2334d fix: carbon issues 2024-04-24 10:15:54 -04:00
Roardom
9d8621fc3c fix: ci
`featured` is both an attribute and a relation. Using `getAttribute`, we always prioritize the attribute, which seems to satisfy CI.
2024-04-20 02:24:39 +00:00
Roardom
11ef47ca09 fix: refresh the torrent before sending to external tracker
We need to populate the status, seeders, leechers, and times_completed fields.
2024-04-20 01:47:32 +00:00
Roardom
899f121e6f fix: add/remove featured torrents to external tracker 2024-04-19 14:29:50 +00:00
Roardom
f61364f803 fix: add torrents to external tracker immediately
Otherwise, we get errors when deleting pending torrents.
2024-04-19 13:39:43 +00:00
HDVinnie
c5d7859dd8 fix: #3724
- closes #3724
2024-04-07 21:03:50 -04:00
HDVinnie
d5b03b55fe refactor: meta scoping
- removes duplicate code into a single usable trait
2024-03-19 13:39:24 -04:00
HDVinnie
a87887734d add: #3665 2024-03-14 12:33:33 -04:00
Jay Sizzla
c59d3957e6 Add refundable to API for post and get requests 2024-03-06 07:27:59 +00:00
HDVinnie
221b9e4dee remove: joypixel emojis 2024-02-22 17:44:53 -05:00
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