Allow to disable downloading REPACK/PROPER matches

This commit is contained in:
Stephen Dawkins
2018-09-23 20:31:01 +01:00
committed by Vladimir Golovnev (Glassez)
parent b09e32ebc0
commit d8054f9cb3
5 changed files with 33 additions and 2 deletions

View File

@@ -344,7 +344,7 @@ bool AutoDownloadRule::matchesSmartEpisodeFilter(const QString& articleTitle) co
// See if this episode has been downloaded before
const bool previouslyMatched = m_dataPtr->previouslyMatchedEpisodes.contains(episodeStr);
const bool isRepack = articleTitle.contains("REPACK", Qt::CaseInsensitive) || articleTitle.contains("PROPER", Qt::CaseInsensitive);
if (previouslyMatched && !isRepack)
if (previouslyMatched && (!isRepack || !AutoDownloader::instance()->downloadRepacks()))
return false;
m_dataPtr->lastComputedEpisode = episodeStr;