mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 14:08:03 -06:00
WebUI/WebAPI: Support downloading torrent via search plugin
This adds support for downloading a torrent via a search plugin's `download_torrent` function. This primarily affects torrents that use a private tracker requiring a login. Closes #18334. PR #23163.
This commit is contained in:
committed by
GitHub
parent
becfd19e34
commit
4fa433a728
@@ -561,8 +561,8 @@ window.qBittorrent.Search ??= (() => {
|
||||
|
||||
const downloadSearchTorrent = () => {
|
||||
for (const rowID of searchResultsTable.selectedRowsIds()) {
|
||||
const { fileName, fileUrl } = searchResultsTable.getRow(rowID).full_data;
|
||||
qBittorrent.Client.createAddTorrentWindow(fileName, fileUrl);
|
||||
const { engineName, fileName, fileUrl } = searchResultsTable.getRow(rowID).full_data;
|
||||
qBittorrent.Client.createAddTorrentWindow(fileName, fileUrl, undefined, engineName);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user