Revamp "Automated RSS downloader" dialog

This commit is contained in:
Vladimir Golovnev (Glassez) 2023-04-11 12:17:48 +03:00
parent 0a87bb368f
commit 905f141657
No known key found for this signature in database
GPG key ID: 52A2C7DEE2DFA6F7
9 changed files with 464 additions and 618 deletions

View file

@ -430,15 +430,8 @@ void AutoDownloader::processJob(const QSharedPointer<ProcessingJob> &job)
m_dirty = true;
storeDeferred();
BitTorrent::AddTorrentParams params;
params.savePath = rule.savePath();
params.category = rule.assignedCategory();
params.addPaused = rule.addPaused();
params.contentLayout = rule.torrentContentLayout();
if (!rule.savePath().isEmpty())
params.useAutoTMM = false;
const auto torrentURL = job->articleData.value(Article::KeyTorrentURL).toString();
BitTorrent::Session::instance()->addTorrent(torrentURL, params);
BitTorrent::Session::instance()->addTorrent(torrentURL, rule.addTorrentParams());
if (BitTorrent::MagnetUri(torrentURL).isValid())
{