mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-02 13:48:05 -06:00
@@ -1,5 +1,6 @@
|
||||
/*
|
||||
* Bittorrent Client using Qt and libtorrent.
|
||||
* Copyright (C) 2024 Jonathan Ketchker
|
||||
* Copyright (C) 2018 Vladimir Golovnev <glassez@yandex.ru>
|
||||
* Copyright (C) 2006-2012 Christophe Dumez <chris@qbittorrent.org>
|
||||
* Copyright (C) 2006-2012 Ishan Arora <ishan@qbittorrent.org>
|
||||
@@ -321,6 +322,7 @@ void AppController::preferencesAction()
|
||||
|
||||
// RSS settings
|
||||
data[u"rss_refresh_interval"_s] = RSS::Session::instance()->refreshInterval();
|
||||
data[u"rss_fetch_delay"_s] = static_cast<qlonglong>(RSS::Session::instance()->fetchDelay().count());
|
||||
data[u"rss_max_articles_per_feed"_s] = RSS::Session::instance()->maxArticlesPerFeed();
|
||||
data[u"rss_processing_enabled"_s] = RSS::Session::instance()->isProcessingEnabled();
|
||||
data[u"rss_auto_downloading_enabled"_s] = RSS::AutoDownloader::instance()->isProcessingEnabled();
|
||||
@@ -870,6 +872,8 @@ void AppController::setPreferencesAction()
|
||||
|
||||
if (hasKey(u"rss_refresh_interval"_s))
|
||||
RSS::Session::instance()->setRefreshInterval(it.value().toInt());
|
||||
if (hasKey(u"rss_fetch_delay"_s))
|
||||
RSS::Session::instance()->setFetchDelay(std::chrono::seconds(it.value().toLongLong()));
|
||||
if (hasKey(u"rss_max_articles_per_feed"_s))
|
||||
RSS::Session::instance()->setMaxArticlesPerFeed(it.value().toInt());
|
||||
if (hasKey(u"rss_processing_enabled"_s))
|
||||
|
||||
@@ -737,6 +737,14 @@
|
||||
<input type="text" id="feed_refresh_interval" style="width: 4em;" /> QBT_TR( min)QBT_TR[CONTEXT=OptionsDialog]
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<label for="feedFetchDelay">QBT_TR(Same host request delay:)QBT_TR[CONTEXT=OptionsDialog]</label>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" id="feedFetchDelay" style="width: 4em;" /> QBT_TR( sec)QBT_TR[CONTEXT=OptionsDialog]
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<label for="maximum_article_number">QBT_TR(Maximum number of articles per feed:)QBT_TR[CONTEXT=OptionsDialog]</label>
|
||||
@@ -2227,6 +2235,7 @@ Use ';' to split multiple entries. Can use wildcard '*'.)QBT_TR[CONTEXT=OptionsD
|
||||
// RSS Tab
|
||||
$('enable_fetching_rss_feeds_checkbox').setProperty('checked', pref.rss_processing_enabled);
|
||||
$('feed_refresh_interval').setProperty('value', pref.rss_refresh_interval);
|
||||
$('feedFetchDelay').setProperty('value', perf.rss_fetch_delay);
|
||||
$('maximum_article_number').setProperty('value', pref.rss_max_articles_per_feed);
|
||||
$('enable_auto_downloading_rss_torrents_checkbox').setProperty('checked', pref.rss_auto_downloading_enabled);
|
||||
$('downlock_repack_proper_episodes').setProperty('checked', pref.rss_download_repack_proper_episodes);
|
||||
@@ -2640,6 +2649,7 @@ Use ';' to split multiple entries. Can use wildcard '*'.)QBT_TR[CONTEXT=OptionsD
|
||||
// RSS Tab
|
||||
settings.set('rss_processing_enabled', $('enable_fetching_rss_feeds_checkbox').getProperty('checked'));
|
||||
settings.set('rss_refresh_interval', $('feed_refresh_interval').getProperty('value'));
|
||||
settings.set('rss_fetch_delay', $('feedFetchDelay').getProperties('value'));
|
||||
settings.set('rss_max_articles_per_feed', $('maximum_article_number').getProperty('value'));
|
||||
settings.set('rss_auto_downloading_enabled', $('enable_auto_downloading_rss_torrents_checkbox').getProperty('checked'));
|
||||
settings.set('rss_download_repack_proper_episodes', $('downlock_repack_proper_episodes').getProperty('checked'));
|
||||
|
||||
Reference in New Issue
Block a user