mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 14:38:04 -06:00
RSS: Better cookies support
This commit is contained in:
@@ -2613,7 +2613,8 @@ QString QBtSession::getSavePath(const QString &hash, bool fromScanDir, QString f
|
||||
// Take an url string to a torrent file,
|
||||
// download the torrent file to a tmp location, then
|
||||
// add it to download list
|
||||
void QBtSession::downloadFromUrl(const QString &url) {
|
||||
void QBtSession::downloadFromUrl(const QString &url, const QList<QNetworkCookie>& cookies)
|
||||
{
|
||||
addConsoleMessage(tr("Downloading '%1', please wait...", "e.g: Downloading 'xxx.torrent', please wait...").arg(url)
|
||||
#ifndef DISABLE_GUI
|
||||
, QPalette::WindowText
|
||||
@@ -2621,7 +2622,7 @@ void QBtSession::downloadFromUrl(const QString &url) {
|
||||
);
|
||||
//emit aboutToDownloadFromUrl(url);
|
||||
// Launch downloader thread
|
||||
downloader->downloadTorrentUrl(url);
|
||||
downloader->downloadTorrentUrl(url, cookies);
|
||||
}
|
||||
|
||||
void QBtSession::downloadFromURLList(const QStringList& urls) {
|
||||
|
||||
Reference in New Issue
Block a user