|
|
|
@ -407,6 +407,7 @@ OptionsDialog::OptionsDialog(QWidget *parent)
@@ -407,6 +407,7 @@ OptionsDialog::OptionsDialog(QWidget *parent)
|
|
|
|
|
connect(m_ui->checkRSSEnable, &QCheckBox::toggled, this, &OptionsDialog::enableApplyButton); |
|
|
|
|
connect(m_ui->checkRSSAutoDownloaderEnable, &QCheckBox::toggled, this, &OptionsDialog::enableApplyButton); |
|
|
|
|
connect(m_ui->textSmartEpisodeFilters, &QPlainTextEdit::textChanged, this, &OptionsDialog::enableApplyButton); |
|
|
|
|
connect(m_ui->checkSmartFilterDownloadRepacks, &QCheckBox::toggled, this, &OptionsDialog::enableApplyButton); |
|
|
|
|
connect(m_ui->spinRSSRefreshInterval, qSpinBoxValueChanged, this, &OptionsDialog::enableApplyButton); |
|
|
|
|
connect(m_ui->spinRSSMaxArticlesPerFeed, qSpinBoxValueChanged, this, &OptionsDialog::enableApplyButton); |
|
|
|
|
connect(m_ui->btnEditRules, &QPushButton::clicked, this, [this]() { AutomatedRssDownloader(this).exec(); }); |
|
|
|
@ -593,6 +594,7 @@ void OptionsDialog::saveOptions()
@@ -593,6 +594,7 @@ void OptionsDialog::saveOptions()
|
|
|
|
|
RSS::Session::instance()->setProcessingEnabled(m_ui->checkRSSEnable->isChecked()); |
|
|
|
|
RSS::AutoDownloader::instance()->setProcessingEnabled(m_ui->checkRSSAutoDownloaderEnable->isChecked()); |
|
|
|
|
RSS::AutoDownloader::instance()->setSmartEpisodeFilters(m_ui->textSmartEpisodeFilters->toPlainText().split('\n', QString::SplitBehavior::SkipEmptyParts)); |
|
|
|
|
RSS::AutoDownloader::instance()->setDownloadRepacks(m_ui->checkSmartFilterDownloadRepacks->isChecked()); |
|
|
|
|
|
|
|
|
|
auto session = BitTorrent::Session::instance(); |
|
|
|
|
|
|
|
|
@ -829,6 +831,7 @@ void OptionsDialog::loadOptions()
@@ -829,6 +831,7 @@ void OptionsDialog::loadOptions()
|
|
|
|
|
m_ui->checkRSSEnable->setChecked(RSS::Session::instance()->isProcessingEnabled()); |
|
|
|
|
m_ui->checkRSSAutoDownloaderEnable->setChecked(RSS::AutoDownloader::instance()->isProcessingEnabled()); |
|
|
|
|
m_ui->textSmartEpisodeFilters->setPlainText(RSS::AutoDownloader::instance()->smartEpisodeFilters().join('\n')); |
|
|
|
|
m_ui->checkSmartFilterDownloadRepacks->setChecked(RSS::AutoDownloader::instance()->downloadRepacks()); |
|
|
|
|
|
|
|
|
|
m_ui->spinRSSRefreshInterval->setValue(RSS::Session::instance()->refreshInterval()); |
|
|
|
|
m_ui->spinRSSMaxArticlesPerFeed->setValue(RSS::Session::instance()->maxArticlesPerFeed()); |
|
|
|
|