Commit Graph

23 Commits

Author SHA1 Message Date
Trim21
2a0d29c1f5 style: add new rule for imports (#785) 2024-08-13 22:31:39 +00:00
Alex Thomson
a078cfe2b0 fix(qBittorrent): Tag removal (#605) (#770) 2024-08-09 11:24:19 +08:00
Alma
89e90bfd74 fix(qBittorrent): Add torrent files without authentication (#768)
authCookie resolves to undefined when used without authentication. This lead to axios throwing ERR_HTTP_INVALID_HEADER_VALUE. Fixed to use the same method getRequestHeaders instead of the direct this.authCookie call, so it does not try to send the request with Cookie: undefined header.
2024-07-23 08:35:33 +08: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
Jesse Chan
9c9675df34 dependencies: bump (major) 2021-10-23 20:52:11 -07:00
Jesse Chan
57a43bbc0c server: qBittorrent: normalize hashes in request to lower case 2021-06-25 21:54:19 +08:00
Jesse Chan
e4818d2532 server: qBittorrent: always fetch full peer list (reverts 7846eb6)
Sync API does not bring much benefits for mostly localhost transfers.
2021-05-02 00:33:31 +08:00
Jesse Chan
bf25b6c055 server: qBittorrent: implement syncMainData 2021-05-02 00:32:46 +08:00
Jesse Chan
7846eb6672 server: qBittorrent: implement syncing syncTorrentPeers 2021-05-02 00:32:46 +08:00
Jesse Chan
031a164b34 server: ensure all promises are rejected with Error 2021-03-02 22:55:56 +08:00
Jesse Chan
d06809635d server: qBittorrent: implement reannounceTorrents 2021-02-21 23:47:45 +08:00
Jesse Chan
d765ac68fa server: qBittorrent: switch from manual ?& to to "params" object 2020-12-27 20:21:32 +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
0c7dad248d server: qBittorrent: implement "isSequential" support 2020-12-26 11:07:30 +08:00
Jesse Chan
4dc34cbd8c server: qBittorrent: do not send [add/remove]Trackers if there is no url 2020-12-05 23:31:35 +08:00
Jesse Chan
e2fc3a74d5 server: qBittorrent: fix "Set Trackers" function
qBittorrent APIs are incremental so remove all existing trackers
before set new ones.

addTrackers endpoint requires URLs to be splitted with "%0A".
2020-12-05 23:31:35 +08:00
Jesse Chan
972c3f6797 server: qBittorrent: return promises in AddFiles and AddURLs
So calling functions can catch errors.
2020-11-25 20:17:13 +08:00
Lucas Winther
a5de58593b server: qBittorrent: set tags after removing all existing tags
APIs of qBittorrent (removeTags, addTags) are incremental. However,
currently it is being used to "set" tags. As a result, tags are never
removed.

This change removes all existing tags before adding new set of tags
in order to simulate the idempotent set function.
2020-11-21 00:46:18 +08:00
Jesse Chan
1a878d5423 flood: rearrange, remove misc files and reformat 2020-11-15 23:03:47 +08:00
Jesse Chan
6b72a36354 server: qBittorrent: retrieve dateCreated and isPrivate properties 2020-11-03 21:26:05 +08:00
Jesse Chan
dc1b939c26 server: qBittorrent, rTorrent: properly hook functions to error handlers 2020-11-03 00:38:46 +08:00
Jesse Chan
6e866445ea EXPERIMENTAL: feature: support qBittorrent 2020-10-25 08:27:52 -05:00