fix(dl): move duplicate torrent data
This commit is contained in:
@@ -173,7 +173,7 @@ impl TransmissionClient {
|
||||
.await?;
|
||||
self.call(
|
||||
"torrent-set-location",
|
||||
json!({"ids": [torrent.id], "location": download_dir, "move": false}),
|
||||
json!({"ids": [torrent.id], "location": download_dir, "move": true}),
|
||||
)
|
||||
.await?;
|
||||
}
|
||||
@@ -392,7 +392,7 @@ mod tests {
|
||||
Mock::given(method("POST"))
|
||||
.and(body_partial_json(json!({
|
||||
"method": "torrent-set-location",
|
||||
"arguments": {"ids": [7], "location": "/downloads", "move": false}
|
||||
"arguments": {"ids": [7], "location": "/downloads", "move": true}
|
||||
})))
|
||||
.respond_with(success())
|
||||
.expect(1)
|
||||
|
||||
Reference in New Issue
Block a user