Commit Graph

758 Commits

Author SHA1 Message Date
Trim21
e0cd98f5a0 fix: /metainfo json response (#738) 2024-04-29 16:27:25 +08:00
Trim21
5ff9cddead feat: new args --disable-rate-limit (#737) 2024-04-29 06:24:23 +08:00
Trim21
7ad8e27967 fix(server): content-type on responding html (#708) 2023-12-12 12:37:49 +00:00
Trim21
e52cfc9170 refactor(server): migrate to fastify (#707) 2023-12-11 19:08:43 +00:00
Trim21
40eac6638b fix(server): @fastify/express doesn't work with http2 (#705) 2023-12-11 18:31:29 +00:00
Trim21
2098c2e3f1 build(server): switch to esbuild (#701) 2023-12-11 17:15:11 +00:00
Trim21
b9680f191f tests: use torrent in fixtures (#703) 2023-12-11 15:25:15 +00:00
Trim21
1781ecf87c Revert "fix: enable source map (#698)" (#700)
This reverts commit be22e24ba9.
2023-12-09 18:53:38 +00:00
Trim21
be22e24ba9 fix: enable source map (#698) 2023-12-09 13:45:18 +08:00
Trim21
f42009fc64 fix: log error trace (#697) 2023-12-08 10:36:58 +00:00
Trim21
1362a35f1f fix(server): handle number port (#692) 2023-12-06 12:06:15 +00:00
Trim21
a570469756 refactor: use fastify (#661) 2023-12-06 11:49:22 +00:00
Trim21
5a0d2bec84 docs: cleanup jsdoc types (#651) 2023-11-29 07:39:57 +00:00
Scratch
9fabf414fe server: remove port requirement, permit running on paths (#680) 2023-11-29 07:34:42 +00:00
Trim21
713b1d95c9 perf: mediainfo router should use async/await to get file info (#656) 2023-11-29 07:31:08 +00:00
Trim21
572ce1ed3a feat: use relative path in mediainfo info (#657) 2023-11-29 07:28:49 +00:00
Trim21
1192e14294 TorrentGeneralInfo: drop leading and trailing whitespaces from comment (#674) 2023-10-17 15:17:42 -07:00
Trim21
2b652f8148 server: rTorrent: manage request queue with p-queue - fix memory leak (#650)
Our self-baked request queue doesn't work well in some cases, leading to memory leak and hung. 

Bug: #648
2023-07-03 15:32:39 -07:00
Jesse Chan
582b374011 dependencies: bump (minor) 2023-06-11 01:11:11 -07:00
Jesse Chan
6ff622c6b9 server: qBittorrent: use POST method for API calls
Bug: #589, #592
Ref: qbittorrent/qBittorrent#17548, qbittorrent/qBittorrent#17549, qbittorrent/qBittorrent#17563
2022-09-12 23:36:47 -07:00
Ian
aa962eb76b server: qBittorrent: log in using POST method (#594)
Bug: #589, #592
Ref: qbittorrent/qBittorrent#17548, qbittorrent/qBittorrent#17549, qbittorrent/qBittorrent#17563
2022-09-12 23:16:53 -07:00
Winter
f5f7ba7ff1 server: torrentService: normalize case of hash during torrent lookup 2022-08-14 17:45:01 -07:00
Jesse Chan
d85e529564 server: rTorrent: throw error when file moving fails
Bug: #507
2022-05-30 19:58:02 -07:00
Jesse Chan
3098cf6d88 server: rTorrent: avoid relying on type coercion of RPC value 2022-05-29 15:32:28 -07:00
Jesse Chan
503f80b098 server: rTorrent: remove "hasLoadThrow" and fold into "isJSONCapable"
It appears that the "hasLoadThrow" check has some weird issues. As
pretty much all JSON capable versions have "load.throw", and the
JSON request requires base64 encoding, fold the check into "isJSONCapable".

Bug: #557
2022-05-14 16:32:13 -07:00
Jesse Chan
a1c2f1d238 server: ditch unmaintained "spdy"
HTTP/2 support can be restored after migration to fastify.

Bug: #524
2022-05-10 23:17:17 -07:00
Jesse Chan
efdd620192 dependencies: bump (major)
TODO: drop the "const argv = argvObj as Record<string, any>;" hack

Refs: yargs/yargs#2175
2022-05-07 16:41:10 -07:00
Jesse Chan
edbb9c1ea7 Revert "server: tests: remove db cleanup workaround"
This reverts commit 365d82755f.
2022-05-01 15:39:34 -07:00
Jesse Chan
365d82755f server: tests: remove db cleanup workaround 2022-05-01 14:58:50 -07:00
Jesse Chan
e09accd696 server: drop databases before removing user 2022-05-01 14:55:50 -07:00
Jesse Chan
1af1d24755 server: switch to @seald/nedb 2022-05-01 14:34:42 -07:00
Jesse Chan
ca37d76b26 server: tests: replace "ts-jest/utils" with "ts-jest"
ts-jest[main] (WARN) Replace any occurrences of "ts-jest/utils" with just "ts-jest".
2022-05-01 13:54:29 -07:00
FinalDoom
745d05089b feature: display comment inside .torrent in torrent details (#541)
* Added comment to torrent details

Mostly simple as it's supported by the various clients,
except in the case of rtorrent.

For rtorrent, tags are stored in custom1, consistent with other clients.
For that reason, comment is being stored in custom2,
which is also consistent with other clients.
In particular, rutorrent uses a prefix on the comment for some reason,
which is duplicated in this change to preserve cross-compatibility.

* Fix lint 'let' and noreferrer

Co-authored-by: FinalDoom <7464170-FinalDoom@users.noreply.gitlab.com>
2022-04-19 15:04:11 -07:00
Jesse Chan
4ef0a98ba5 server: add shebang to bundled executable 2021-11-30 12:20:38 -08:00
Jesse Chan
477919856b server: create production build with webpack directly 2021-11-28 22:48:22 -08:00
Jesse Chan
a94bbb4198 server: flatten directory structure a bit 2021-11-28 19:57:27 -08:00
Jesse Chan
7d8d107403 server: tests: ensure connectivity to client before tests 2021-11-09 00:31:15 -08:00
Jesse Chan
1a279fa167 server: tests: confirm deletion of torrents before continue 2021-11-08 23:35:28 -08:00
Jesse Chan
da8f8b4d24 server: tests: mock response to torrents fetch 2021-11-08 23:20:09 -08:00
Jesse Chan
5dc4e8a119 server: normalize fetching of torrents added with URL 2021-11-08 23:20:09 -08:00
Jesse Chan
af8de75e05 server: remove unused history snapshots and make it in-mem only 2021-10-31 23:21:20 -07:00
Trim21
1a3f3ffaec server: Transmission: normalize "unknown" ETA (-2) to infinity (-1) (#432)
Bug: #431
2021-10-23 20:54:49 -07:00
Jesse Chan
9c9675df34 dependencies: bump (major) 2021-10-23 20:52:11 -07:00
Jesse Chan
3563344dc2 server: tests: use a more permanent test URL 2021-09-11 19:09:41 +08:00
Jesse Chan
ff6b607afb dependencies: bump (minor) 2021-09-11 19:08:59 +08:00
Jesse Chan
dc17bfb2eb dependencies: bump (major) 2021-09-06 19:22:23 +08:00
Saber
e03e1596ae server: feedService: delete rule from this.rules on remove (#375) 2021-07-16 12:43:00 +08:00
Saber
ad764648dd feature: display total size by tag or tracker of torrents on sidebar (#369)
Bug: #244
2021-07-14 16:28:15 +00:00
Jesse Chan
32fde2cf1a server: destroy user services before cleaning up data 2021-06-26 15:39:19 +08:00
Trim21
5f74bc980b server: DiskUsage: skip mount points of "overlayfs" type (#341) 2021-06-26 15:13:26 +08:00