Commit Graph

9987 Commits

Author SHA1 Message Date
Roardom
ecb60fd4a2 remove: unneeded binary string encoding in announce
When the queue system was used, Laravel's queue system required all variables to be json-encodable, which meant encoding binary strings in either hex or base64. Now that we have inlined the queue, we can use the binary data directly without encoding.
2023-09-09 05:16:56 +00:00
HDVinnie
97c44d10e6 Merge pull request #3122 from Roardom/manual-announce-bencoding
(Update) Manually bencode the announce response
2023-09-08 05:23:42 -04:00
HDVinnie
93931202d1 update: phpunit-test.yml 2023-09-07 23:29:44 -04:00
Roardom
285642f26e fix: ci 2023-09-08 03:04:26 +00:00
Roardom
9345ad6bb3 update: manually bencode the announce response
Performance optimization compared to recursively encoding one character at a time using the Bencode helper function.
2023-09-08 01:46:58 +00:00
HDVinnie
d9287c334b Merge pull request #3121 from Roardom/replace-throwif-in-announce
(Update) Remove `throw_if` helper overhead in announce
2023-09-07 21:42:30 -04:00
Roardom
8707d7f42d update: remove throw_if helper overhead in announce 2023-09-07 23:23:18 +00:00
HDVinnie
9c67f26d0a Merge pull request #3119 from Roardom/cache-announce-torrents
(Update) Cache torrents in announce by infohash
2023-09-07 09:32:56 -04:00
Roardom
bc94c0ed5e update: cache torrents in announce by infohash 2023-09-07 03:37:09 +00:00
HDVinnie
fa7eebba4d Merge pull request #3118 from Roardom/fix-torrent-activity-indicators
(Fix) Torrent activity indicator logic
2023-09-06 13:43:54 -04:00
Roardom
8d3a796868 fix: torrent activity indicator logic 2023-09-06 01:11:42 +00:00
HDVinnie
b02991b284 Merge pull request #3117 from Roardom/treat-stop-differently-for-min-announce-enforcement
(Update) Delete min interval timer if stopped event
2023-09-05 21:03:18 -04:00
Roardom
f622a356b5 update: delete min interval timer if stopped event 2023-09-06 00:28:39 +00:00
HDVinnie
9e3d77fca2 Merge pull request #3116 from Roardom/fix-announce
(Fix) Announce
2023-09-05 17:58:13 -04:00
Roardom
cb123390f3 fix: don't upsert peer connectable status
We calculate these asynchronously now.
2023-09-05 21:48:58 +00:00
Roardom
600f1ef3b0 fix: missing required selected columns
We need the `uploaded` and `downloaded` columns for the history calculations
2023-09-05 21:48:07 +00:00
HDVinnie
94cab6ac8f remove: announce dead code 2023-09-04 18:25:15 -04:00
HDVinnie
1d02bd96e2 Merge pull request #3114 from Roardom/inline-announce-job-2
(Update) Inline announce job
2023-09-04 12:49:32 -04:00
HDVinnie
41417d8c07 Merge branch '7.x.x' into pr/3114 2023-09-04 12:35:04 -04:00
HDVinnie
f0ae1485cf Merge pull request #3113 from Roardom/async-peer-connectivity
(Update) Batch peer connectivity checks asynchronously
2023-09-04 12:31:01 -04:00
HDVinnie
bbc984741e Merge pull request #3112 from Roardom/fix-home-eager-loads
(Fix) Home page eager loads
2023-09-04 12:29:55 -04:00
HDVinnie
6e515b80b6 Merge pull request #3111 from Roardom/fix-torrent-card-meta-query
(Fix) Torrent card meta query
2023-09-04 12:29:22 -04:00
Roardom
b4ed78fe14 fix: ci 2023-09-04 10:18:45 +00:00
Roardom
cfa417de3b update: inline announce processing job into announce 2023-09-04 10:02:44 +00:00
Roardom
3763cce7f1 update: inline some announce job variables 2023-09-04 09:49:03 +00:00
Roardom
b287d1e431 update: announce partial freeleech logic and documentation 2023-09-04 09:44:42 +00:00
Roardom
7d90019e44 refactor: add more comments to announce 2023-09-04 09:43:29 +00:00
Roardom
6ff630139c update: torrent seeder/leecher/times_completed relatively 2023-09-04 09:40:54 +00:00
Roardom
26bdeca374 refactor: inline peer upsert array creation
Remove some code duplication.
2023-09-04 09:37:53 +00:00
Roardom
be0936af27 update: remove redundant peer update
The peer is already updated automatically through Laravel's upsert.
2023-09-04 09:36:48 +00:00
Roardom
dce02a6a7a refactor: clarify that announce uploaded/downloaded are deltas 2023-09-04 09:36:15 +00:00
Roardom
7161b85a23 refactor: organize announce job if statement conditions 2023-09-04 09:35:01 +00:00
Roardom
13d3973220 update: change torrent seeder/leecher counts relatively 2023-09-04 09:34:41 +00:00
Roardom
31e7b73549 update: deconstruct announce job switch statement 2023-09-04 09:34:01 +00:00
Roardom
f703b05cf2 update: batch peer connectivity checks asynchronously 2023-09-04 08:58:33 +00:00
Roardom
f278906444 fix: home page eager loads 2023-09-04 08:07:17 +00:00
Roardom
3aae65c37e fix: torrent card meta query 2023-09-04 03:52:06 +00:00
HDVinnie
6c388bc60e Merge pull request #3107 from ReileenKawahara/fix/avatar-remove-old 2023-09-02 17:17:06 -04:00
ReileenKawahara
76a6bd5a39 fix: operand 2023-09-02 13:03:49 +02:00
HDVinnie
48c8e607fb Merge pull request #3103 from Roardom/fix-min-interval-enforcement
(Fix) Min interval enforcement
2023-09-02 00:40:04 -04:00
HDVinnie
769fb6213f fix: lint 2023-09-02 00:35:23 -04:00
HDVinnie
f340281ffb Merge pull request #3106 from Roardom/null-posters
(Fix) Posters for non-existent movies/tv
2023-09-02 00:33:00 -04:00
Reileen Kawahara
056e163af5 fix: avatar remove old 2023-09-01 11:22:10 -07:00
Roardom
71e2786861 fix: posters for non-existent movies/tv 2023-09-01 14:40:53 +00:00
Roardom
d7287b86cf fix: min interval enforcement
Arguments are in the wrong order
2023-09-01 07:12:33 +00:00
HDVinnie
44a7ae8b4d Merge pull request #3070 from Roardom/announce-interval
(Update) improve peer min interval enforcement
2023-08-31 21:38:26 -04:00
HDVinnie
f510d77cbb Merge branch '7.x.x' into announce-interval 2023-08-31 18:48:02 -04:00
HDVinnie
624e4f2b68 update: announce controller
- remove dead timestamp code
- decrease mix / max intervals
- simplify checkMinInterval function
2023-08-31 18:41:43 -04:00
HDVinnie
ffaa3452b1 update: announce controller
- return times_completed metric to user client
2023-08-31 18:35:18 -04:00
HDVinnie
a53b5a67b6 add: Wished checkmark to torrent search page
- also adds lang
2023-08-31 18:30:05 -04:00