mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2025-02-18 00:02:02 +03:00
fix: 400 when adding trackers (#674) @Larsluph
This commit is contained in:
parent
f4646e2e66
commit
9d31ff4360
1 changed files with 6 additions and 1 deletions
|
@ -340,7 +340,12 @@ export class QBitApi {
|
|||
}
|
||||
|
||||
async addTorrentTrackers(hash: string, trackers: string): Promise<void> {
|
||||
await this.torrentAction('addTrackers', [hash], { urls: trackers })
|
||||
const params = {
|
||||
hash,
|
||||
urls: trackers
|
||||
}
|
||||
|
||||
await this.execute(`/torrents/addTrackers`, params)
|
||||
}
|
||||
|
||||
async removeTorrentTrackers(hash: string, trackers: string[]): Promise<void> {
|
||||
|
|
Loading…
Add table
Reference in a new issue