mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 14:08:03 -06:00
WebUI: Add new Add Torrent experience
This PR uses the new APIs from #21015 to provide a WebUI Add Torrent experience more closely matching the GUI's. New functionality: - View torrent size, date, infohash, files, etc. - Reprioritize and ignore files before adding - Specify tags when adding torrent - Specify save path for incomplete torrent Closes #20557, closes #10997, closes #12499, closes #14201, closes #15071, closes #15718, closes #16207. PR #21645.
This commit is contained in:
committed by
GitHub
parent
02d72179fe
commit
02892d1250
@@ -559,15 +559,10 @@ window.qBittorrent.Search ??= (() => {
|
||||
};
|
||||
|
||||
const downloadSearchTorrent = () => {
|
||||
const urls = [];
|
||||
for (const rowID of searchResultsTable.selectedRowsIds())
|
||||
urls.push(searchResultsTable.getRow(rowID).full_data.fileUrl);
|
||||
|
||||
// only proceed if at least 1 row was selected
|
||||
if (!urls.length)
|
||||
return;
|
||||
|
||||
showDownloadPage(urls);
|
||||
for (const rowID of searchResultsTable.selectedRowsIds()) {
|
||||
const { fileName, fileUrl } = searchResultsTable.getRow(rowID).full_data;
|
||||
qBittorrent.Client.createAddTorrentWindow(fileName, fileUrl);
|
||||
}
|
||||
};
|
||||
|
||||
const manageSearchPlugins = () => {
|
||||
|
||||
Reference in New Issue
Block a user