Commit Graph

463 Commits

Author SHA1 Message Date
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
e03db3e6ad update: can_upload validation 2024-03-19 13:05:00 -04:00
Roardom
a37f414145 update: normalize post tips and torrent tips 2024-02-26 09:33:32 +00:00
Roardom
18675b57f1 update: sync peer counts asynchronously
Makes announce processing job code easier to deal with. There is negligible performance loss (<5%) by querying the peer count realtime on the torrents and torrent pages.
2024-02-23 10:30:29 +00:00
HDVinnie
221b9e4dee remove: joypixel emojis 2024-02-22 17:44:53 -05:00
Roardom
76e96dca95 add: emphasis to bookmark button when bookmarked and show bookmark count 2024-02-06 09:08:58 +00:00
HDVinnie
492c97d518 chore: pint 2024-02-04 20:57:34 -05:00
Roardom
8f0bc33058 update: limit user edit interval for torrents/requests 2024-01-28 12:02:09 +00: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
HDVinnie
ea0018a862 PHP Style Change (Laravel Pint CI) 2024-01-16 18:05:08 +00:00
Roardom
29b16a1e2f fix: missing mediainfo returning empty string instead of null 2024-01-16 02:26:42 +00:00
HDVinnie
4a4be11d70 add: editor group
- editors only have the ability to edit torrents.
2024-01-15 10:32:58 -05: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
Roardom
0ef7cc235a fix: phpstan level 7 controller errors 2024-01-07 17:13:20 +00:00
Roardom
575729e805 fix: larastan errors in Helpers\TorrentTools.php 2024-01-03 03:21:46 +00:00
Roardom
eeb13545f6 fix: freeleech token icon
A different variable was passed into the view compared to what was expected.
2023-11-14 18:58:43 +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
b3f0386149 cleanup: pt.1 2023-10-12 22:30:52 -04:00
Roardom
bc94c0ed5e update: cache torrents in announce by infohash 2023-09-07 03:37:09 +00:00
Roardom
37000e6d3f update: use movie/tv poster component for recommendations 2023-08-30 08:05:21 +00:00
Roardom
2ca7adbbe5 fix: various larastan controller issues 2023-08-25 09:13:18 +00:00
Roardom
6e6f551367 fix: various larastan livewire issues 2023-08-25 06:45:41 +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
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
229eed8091 refactor: use _id suffix on bon_transactions foreign keys 2023-07-22 21:30:50 +00:00
Roardom
5ec59675c4 update: drop position column on distributors
With almost 1000 distributors, it's a nightmare trying to add a new distributor and having to change its position. All the distributors are ordered alphabetically anyways so just order based on the `name` field instead.
2023-07-20 10:30:07 +00:00
HDVinnie
ab1bcce48c PHP Style Change (Laravel Pint CI) 2023-07-18 04:53:41 +00:00
HDVinnie
3330e0aa1f fix: torrent deletion pms
- insert does not set timestamps automatically
2023-07-18 00:52:34 -04:00
Roardom
061fb0153d fix: torrent deletion message not allowing spaces 2023-07-14 21:11:38 +00:00
Roardom
741adef615 add: moderation scopes 2023-07-10 04:20:40 +00:00
Roardom
f28282fa8a fix: incorrect route parameters on torrent update
Route model binding isn't used here. We need to use the id manually.
2023-07-08 04:53:27 +00:00
Roardom
097c60db72 fix: fetch relation result instead of relation.
We want the category database record, not the query builder instance.
2023-07-08 04:52:22 +00:00
Roardom
b4da1366f4 fix: append to correct keywords variable on torrent edit
The wrong variable was used. Previously the string was used instead of the array.
2023-07-08 04:51:12 +00:00
Roardom
222d2dee59 refactor: cruddify playlists
Use cruddy routes and controllers. Use route model binding. Use mass assignment. Use form requests. Use pivot model.
2023-07-07 03:18:13 +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
Roardom
9d4789ba91 refactor: require whitespace before statements 2023-07-07 00:27:13 +00:00
HDVinnie
4aae465913 fix: TorrentController 2023-06-21 20:23:32 -04:00
Roardom
d2e36c368e refactor: reduce temporary variables passed to views 2023-06-19 23:25:40 +00:00
Roardom
1fa4a3e506 refactor: swap sorting in laravel to ordering in the database 2023-06-19 23:18:40 +00:00
Roardom
b5493c5642 refactor: swap where('id', '=', ) for find() 2023-06-19 23:18:40 +00:00
HDVinnie
4aa67fe22a Merge branch '7.x.x' into Refund-System 2023-05-20 11:06:12 -04:00
Roardom
18e79baaaa refactor: remove torrent preview
No longer used
2023-05-01 03:04:28 +00:00
Roardom
af12edb4ea update: cruddify torrent views 2023-04-28 18:03:27 +00:00