Commit Graph

113 Commits

Author SHA1 Message Date
HDVinnie
99800ce14e Revert "Merge pull request #4774 from Roardom/laravel11-app-structure-3"
This reverts commit d38964cbd7, reversing
changes made to 5c00b12e7c.
2025-06-16 22:41:15 -04:00
Roardom
12b9a30b0c refactor: migrate to laravel 11 app structure 2025-06-13 22:31:20 +00:00
Roardom
7998c4a204 add: setting to automatically unbookmark torrents upon completion
Only every 15 minutes for now instead of upon immediate completion, but it makes the code much easier to implement.
2025-03-23 21:17:11 +00:00
Roardom
933efb785b update: inline client stats query
The query only takes 6 seconds on my local untuned machine. Caching it for an hour is probably fine, we have worse queries out there, and indexing isn't an option since this table is write-heavy. Reduces overall complexity and prevents blank page after cache is reset.
2025-03-06 16:53:06 +00:00
Roardom
6e73b4f8f2 refactor: swap command signatures for class string in scheduler
Allows ctrl+clicking in IDE.
2025-02-20 03:55:31 +00:00
Roardom
42488abe6c update: only delete upsert data after successful upsertion 2025-02-13 09:53:04 +00:00
HDVinnie
370dfcdff2 rename: person to people 2024-10-15 20:37:05 -04:00
HDVinnie
3aa64a8923 update: console kernel
- run AutoSyncPersonsToMeilisearch command daily
2024-10-15 16:10:21 -04:00
HDVinnie
428bf63910 add: base donation system 2024-09-12 13:03:38 -04:00
Roardom
87b4d34b23 Reapply "update: only re-index recently updated torrents"
This reverts commit 274e6f2368.
2024-08-18 17:08:09 +00:00
HDVinnie
1087dff233 Merge branch '8.x.x' into meilisearch-3 2024-08-18 01:19:43 -04:00
HDVinnie
a295c81fe9 Merge pull request #4046 from HDInnovations/Staff-Audit-Activity
(Add) Staff Audit Activity
2024-08-15 15:55:01 -04:00
HDVinnie
f92194281c refactor: release years
- remove the release_year column from the torrents table and just search the movie/tv tables instead
2024-08-13 22:18:38 -04:00
HDVinnie
274e6f2368 Revert "update: only re-index recently updated torrents"
This reverts commit 55889e8177.
2024-08-13 21:42:57 -04:00
HDVinnie
d88da0fbdd update: AutoRecycleAudits command 2024-08-13 21:04:07 -04:00
Roardom
55889e8177 update: only re-index recently updated torrents
And reduce the sync interval.
2024-08-13 23:56:42 +00:00
Roardom
fa35e4e5c0 add: use meilisearch to search torrents 2024-08-06 02:15:25 +00:00
Roardom
e584349eb3 update: don't run redundant commands when external tracker is used
The external tracker handles the upserts (`auto:upsert_peers`,
`auto:upsert_histories`, and `auto:upsert_announces`), handles
incrementing/decrementing the seeders/leeches/times_completed
(`auto:sync_peers`), and handles incrementing/decrementing the
balance (`auto:torrent_balance`).

The external tracker keeps track of leech slots internally, so
the leech slot caching isn't needed and as a result, shouldn't
be touched inside the `auto:flush_peers` command either.

There's no inaccurate stats issues that could happen if these
commands are run, but a normal 200 ms 3000-record upsert from
the external tracker takes 2-3 seconds if they happen at the
same time as the `auto:sync_peers` or `auto:torrent_balance`
commands are being run.
2024-07-17 13:01:16 +00:00
Roardom
cdb063d8e0 add: private message threads 2024-06-07 20:47:36 +00:00
Roardom
b86475a732 add: strict types to all files 2024-05-23 13:58:29 +00:00
HDVinnie
cd96af4604 fix: #3531
- close #3531
2024-03-11 08:56:30 -04: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
ac9b18d425 update: console kernel
- delete expired password reset tokens
2024-02-21 21:48:00 -05:00
Roardom
49253fc68c add: random media block
Co-authored-by: HDVinnie <hdinnovations@protonmail.com>
2024-02-04 14:39:20 +00:00
Roardom
2c10ccb2bd fix: peer connectability check
Updating all of a user's peers to either be connectable or unconnectable causes deadlocks when updated at the same time as a bulk peer upsert. We need to combine the peer connectability updates with the regular bulk peer upserts.
2023-11-27 23:48:16 +00:00
Roardom
9319f7fb66 add: announce logging for debugging 2023-11-16 16:37:38 +00:00
Roardom
e62d342cb3 fix: decrease torrent seeders/leechers when a peer is marked inactive 2023-09-09 21:13:00 +00:00
Roardom
f703b05cf2 update: batch peer connectivity checks asynchronously 2023-09-04 08:58:33 +00:00
Roardom
21de4f2047 fix: race condition in download slot limit 2023-08-13 11:12:13 +00:00
HDVinnie
5a3c3de9eb update: peers upsert 2023-07-24 13:22:43 -04:00
HDVinnie
f8b9b3c80c Merge branch '7.x.x' into active-peers 2023-07-24 13:04:12 -04:00
HDVinnie
61fccdc778 Merge branch '7.x.x' into Redis-Peer-Batching 2023-07-24 12:52:43 -04:00
Roardom
9c0c474a9a refactor: rename graveyard to resurrections
Make everything consistent with the "plural noun" style
2023-07-24 01:07:35 +00:00
Roardom
10c146d217 add: peer active status
Mark peers for deletion via this column so that they can be mass deleted later. This allows for combining peer inserts, updates and deletions into a single bulk peer upsert queue. Otherwise, when a user stops and starts a torrent before the bulk peer updates are collected in the queue, the peer may be deleted immediately after it gets inserted.
2023-07-23 00:42:45 +00:00
Roardom
01ef9e29ff update: batch user last action updates with redis 2023-07-20 01:17:00 +00:00
Roardom
6ea7d8af69 add: redis history batching 2023-07-18 09:46:37 +00:00
HDVinnie
106484f14b update: upsert
- history still needs too be made to upsert
- connectable logic needs updating
- $peer->delete() in job needs to be reworked

The only solution would be to instead of deleting it on stopped event, make another column on the peers table for is_active and update is_active to 1 in every case except for stopped, in which case update it to 0 instead of deleting and then a cron job can delete it later.

Co-Authored-By: Roardom <78790963+Roardom@users.noreply.github.com>
2023-07-02 23:32:42 -04:00
HDVinnie
bce19466fe Merge branch '7.x.x' into Redis-Peer-Batching 2023-06-22 08:46:31 -04:00
HDVinnie
3ea06a0a6d Merge branch '6.x.x' into Refund-System 2023-02-07 08:44:57 -05:00
HDVinnie
3a04dbe35e Merge branch '6.x.x' into Redis-Peer-Batching 2023-02-05 09:07:54 -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
5fad5c20d7 add: peer batching 2023-01-29 11:48:56 -05:00
HDVinnie
102c79269e Merge branch '6.x.x' into Refund-System 2022-11-18 22:20:03 -05:00
HDVinnie
ace8dcb5b1 revert: peer batching 2022-11-14 20:10:26 -05:00
HDVinnie
2fca81af28 disable: peer batching
- further debugging needed
2022-11-14 19:59:53 -05:00
HDVinnie
65e2b375e3 Merge pull request #2446 from Roardom/redis-peers
(Update) Batch peer updates
2022-11-11 20:39:08 -05:00
HDVinnie
b9025ce2cd Merge pull request #2074 from HDInnovations/Warnings-System
(Refactor) Warnings System
2022-11-04 22:08:40 -04:00
Roardom
cb62d9a872 update: batch peer updates 2022-10-30 19:56:43 -05:00
HDVinnie
898dd96e14 Merge branch '6.x.x' into Refund-System 2022-10-03 02:09:36 -04:00
Roardom
199cd9ea5f add: staff page to view cheated torrents 2022-09-30 14:15:05 -05:00