Merge pull request #8424 from glassez/fix-rss

Disable Auto TMM when RSS rule has save path. Closes #8411
This commit is contained in:
Vladimir Golovnev
2018-02-20 11:13:15 +03:00
committed by GitHub

View File

@@ -386,6 +386,8 @@ void AutoDownloader::processJob(const QSharedPointer<ProcessingJob> &job)
params.savePath = rule.savePath();
params.category = rule.assignedCategory();
params.addPaused = rule.addPaused();
if (!rule.savePath().isEmpty())
params.useAutoTMM = TriStateBool::False;
auto torrentURL = job->articleData.value(Article::KeyTorrentURL).toString();
BitTorrent::Session::instance()->addTorrent(torrentURL, params);