Fix refresh RSS

This commit is contained in:
EstrellaXD
2022-07-16 18:12:26 +08:00
parent d821c32e93
commit 9143e5027a
2 changed files with 3 additions and 4 deletions

View File

@@ -28,6 +28,7 @@ DEFAULT_SETTINGS = {
"enable_rename": True,
"reset_folder": False,
"log_path": "/config/log.txt",
"refresh_rss": True,
}
ENV_TO_ATTR = {

View File

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