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
commit 078982ada6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);