mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 14:08:03 -06:00
WebAPI: Expand RSS related API
Added markAsRead API method with optional parameter for specifying single article. Added the rss_smart_episode_filters and rss_download_repack_proper_episodes keys to preference api. Added matchingArticles API method for retrieving articles that match specified rule.
This commit is contained in:
@@ -255,6 +255,8 @@ void AppController::preferencesAction()
|
||||
data["rss_max_articles_per_feed"] = RSS::Session::instance()->maxArticlesPerFeed();
|
||||
data["rss_processing_enabled"] = RSS::Session::instance()->isProcessingEnabled();
|
||||
data["rss_auto_downloading_enabled"] = RSS::AutoDownloader::instance()->isProcessingEnabled();
|
||||
data["rss_download_repack_proper_episodes"] = RSS::AutoDownloader::instance()->downloadRepacks();
|
||||
data["rss_smart_episode_filters"] = RSS::AutoDownloader::instance()->smartEpisodeFilters().join('\n');
|
||||
|
||||
// Advanced settings
|
||||
// qBitorrent preferences
|
||||
@@ -643,6 +645,10 @@ void AppController::setPreferencesAction()
|
||||
RSS::Session::instance()->setProcessingEnabled(it.value().toBool());
|
||||
if (hasKey("rss_auto_downloading_enabled"))
|
||||
RSS::AutoDownloader::instance()->setProcessingEnabled(it.value().toBool());
|
||||
if (hasKey("rss_download_repack_proper_episodes"))
|
||||
RSS::AutoDownloader::instance()->setDownloadRepacks(it.value().toBool());
|
||||
if (hasKey("rss_smart_episode_filters"))
|
||||
RSS::AutoDownloader::instance()->setSmartEpisodeFilters(it.value().toString().split('\n'));
|
||||
|
||||
// Advanced settings
|
||||
// qBittorrent preferences
|
||||
|
||||
Reference in New Issue
Block a user