mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2025-03-14 12:10:18 +03:00
fix: Update Paramaters Sent to /torrents/renameFile (#470)
In v2.8.0 of the API, qbittorrent changed what parameters are required for the /torrents/renameFile endpoint. Instead of id, hash, and name, the params are not hash, oldPath, and newPath.
This commit is contained in:
parent
7e5cc4891a
commit
1ccdf08b60
2 changed files with 5 additions and 5 deletions
|
@ -216,7 +216,7 @@ export default {
|
|||
this.togleEditing(item)
|
||||
},
|
||||
renameFile(item) {
|
||||
qbit.renameFile(this.hash, item.id, item.newName)
|
||||
qbit.renameFile(this.hash, item.name, item.newName)
|
||||
item.name = item.newName
|
||||
this.togleEditing(item)
|
||||
},
|
||||
|
@ -226,4 +226,4 @@ export default {
|
|||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</script>
|
||||
|
|
|
@ -349,11 +349,11 @@ class Qbit {
|
|||
return this.execute('post', `/torrents/${action}`, params)
|
||||
}
|
||||
|
||||
renameFile(hash, id, name) {
|
||||
renameFile(hash, oldPath, newPath) {
|
||||
const params = {
|
||||
hash,
|
||||
id,
|
||||
name
|
||||
oldPath,
|
||||
newPath
|
||||
}
|
||||
|
||||
return this.execute('post', '/torrents/renameFile', params)
|
||||
|
|
Loading…
Add table
Reference in a new issue