Commit Graph

27 Commits

Author SHA1 Message Date
Trim21
2a0d29c1f5 style: add new rule for imports (#785) 2024-08-13 22:31:39 +00:00
Trim21
c3b9a6c6aa build: embed mmdb as pure js data (#782) 2024-08-14 05:48:02 +08:00
Trim21
77339cce1a fix(transmission): avoid set down/upload speed to 0 (#766) 2024-07-10 17:37:38 +00: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
a94bbb4198 server: flatten directory structure a bit 2021-11-28 19:57:27 -08:00
Jesse Chan
5dc4e8a119 server: normalize fetching of torrents added with URL 2021-11-08 23:20:09 -08: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
59a3fc74fd API: add a "dateActive" field to TorrentProperties
Last time the torrent is active, -1 means currently active, 0 means data unavailable
2021-05-26 22:19:40 +08:00
Jesse Chan
4e6d4136cb API: add a "dateFinished" field to TorrentProperties 2021-05-17 21:46:08 +08:00
Jesse Chan
031a164b34 server: ensure all promises are rejected with Error 2021-03-02 22:55:56 +08:00
Jesse Chan
1e217295d9 server: Transmission: implement reannounceTorrents 2021-02-21 23:47:45 +08:00
Jesse Chan
12f08a9313 API: torrents: return hashes of added torrents when possible 2021-02-15 22:47:40 +08:00
Jesse Chan
1b03d3d180 server: handle case difference in ".torrent" download 2021-01-13 18:55:23 +08:00
Jesse Chan
703978b1f3 server: qBittorrent, Transmission: normalize hash to upper case 2020-12-29 22:08:52 +08:00
Jesse Chan
1a0f3d0b45 server: allow to download meta-info (.torrent) files
GET /api/torrents/{hash(, hash2, ...)}/metainfo
2020-12-28 17:32:18 +08:00
Jesse Chan
26c9987355 server: support initial seeding (aka superseeding)
https://www.bittorrent.org/beps/bep_0016.html
2020-12-26 13:49:55 +08:00
Jesse Chan
61b6b61569 API: torrents: add "isSequential" torrent property 2020-12-26 11:07:30 +08:00
Jesse Chan
20fc3ac6a8 server: torrents: disallow comma in tag 2020-12-15 20:57:36 +08:00
Jesse Chan
00f113b379 server: Transmission: properly report percentComplete of content 2020-12-05 22:26:09 +08:00
Jesse Chan
c9748e7e31 server: don't truncate percentCompleted to integer
It is frontend's job to handle this.
2020-11-26 23:49:37 +08:00
Jesse Chan
2e124917bb server: Transmission: properly await tracker removal results 2020-11-18 01:04:16 +08:00
Jesse Chan
bc362cc8af server: Transmission: check when add torrent with isCompleted 2020-11-18 00:09:04 +08:00
Jesse Chan
1a878d5423 flood: rearrange, remove misc files and reformat 2020-11-15 23:03:47 +08:00
Jesse Chan
80ffb24d8d API: torrents: schema validate add-urls and add-files endpoints
Those endpoints use extensive amount of user-provided properties
and will be frequently used by third party developers. With Node
15, unhandled promise rejections directly crash the server, as
such, it is safer to schema validate the request before processing
it.

This change also prepares the code paths for later change that adds
destination fallbacks.
2020-11-13 13:27:31 +08:00
Jesse Chan
8efad15d5b API: client: "throttle" means "Max"
There is no need for both. So use "Speed" for better clarity.

Also switch to B/s as that's more native for everything.
2020-11-08 23:45:51 +08:00
Jesse Chan
d592152967 API: client: remove [down/up]Throttle, clarify throttleGlobal[Down/Up]Max unit 2020-11-08 01:57:50 +08:00
Jesse Chan
7a146396b1 feature: support Transmission 2020-11-05 23:01:41 +08:00