mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-30 03:28:41 -07:00
RSS: Better cookies support
This commit is contained in:
parent
716e84264e
commit
d55f3b5aff
5 changed files with 34 additions and 39 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue