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()