New TorrentInfo class.

This commit is contained in:
EstrellaXD
2023-05-16 22:10:20 +08:00
parent f6e08f61bc
commit e4d17ee60b
8 changed files with 62 additions and 34 deletions

View File

@@ -11,18 +11,13 @@ def check_status() -> bool:
if settings.rss_parser.token in ["", "token"]:
logger.warning("Please set RSS token")
return False
if check_rss():
if check_downloader():
logger.debug("All check passed")
return True
if check_downloader():
logger.debug("All check passed")
return True
return False
def check_downloader():
with RequestContent() as req:
if not req.check_connection():
logger.warning("Can't connect to downloader")
return False
with DownloadClient() as client:
if client.authed:
logger.debug("Downloader is running")