mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-14 17:23:07 -07:00
WebUI: improve 'exporting torrent' behavior
Don't stop the whole operation when a torrent doesn't exists and try to export the remaining existing ones. PR #18858.
This commit is contained in:
parent
51132c817b
commit
7397c80837
1 changed files with 2 additions and 2 deletions
|
@ -1009,7 +1009,7 @@ const initializeWindows = function() {
|
|||
for (const hash of hashes) {
|
||||
const row = torrentsTable.rows.get(hash);
|
||||
if (!row)
|
||||
return;
|
||||
continue;
|
||||
|
||||
const name = row.full_data.name;
|
||||
const url = new URI("api/v2/torrents/export");
|
||||
|
@ -1018,7 +1018,7 @@ const initializeWindows = function() {
|
|||
// download response to file
|
||||
const element = document.createElement("a");
|
||||
element.setAttribute("href", url);
|
||||
element.setAttribute("download", name + ".torrent");
|
||||
element.setAttribute("download", (name + ".torrent"));
|
||||
document.body.appendChild(element);
|
||||
element.click();
|
||||
document.body.removeChild(element);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue