mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-06 05:01:25 -07: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:
parent
e05ef12e68
commit
a3b58e59da
3 changed files with 58 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue