From 9143e5027a118540fca896337e37c94c5533beb5 Mon Sep 17 00:00:00 2001 From: EstrellaXD Date: Sat, 16 Jul 2022 18:12:26 +0800 Subject: [PATCH] Fix refresh RSS --- src/conf/const.py | 1 + src/core/download_client.py | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/conf/const.py b/src/conf/const.py index 80d5cb00..6d003174 100644 --- a/src/conf/const.py +++ b/src/conf/const.py @@ -28,6 +28,7 @@ DEFAULT_SETTINGS = { "enable_rename": True, "reset_folder": False, "log_path": "/config/log.txt", + "refresh_rss": True, } ENV_TO_ATTR = { diff --git a/src/core/download_client.py b/src/core/download_client.py index dc126440..78f2616d 100644 --- a/src/core/download_client.py +++ b/src/core/download_client.py @@ -64,6 +64,7 @@ class DownloadClient: else: try: self.client.rss_remove_item(item_path="Mikan_RSS") + logger.info("Remove RSS Feed successfully.") except ConflictError: logger.info("No feed exists, start adding feed.") try: @@ -132,8 +133,5 @@ if __name__ == "__main__": from conf.const_dev import DEV_SETTINGS settings.init(DEV_SETTINGS) put = DownloadClient() - info = put.get_torrent_info() - for i in info: - print(i.name) - + put.rss_feed()