Add extra auth func to aviod program fail to startup

This commit is contained in:
EstrellaXD
2023-04-25 09:56:24 +08:00
parent 608f2c00d4
commit 43da3808ec
3 changed files with 13 additions and 12 deletions

View File

@@ -13,6 +13,10 @@ class DownloadClient:
def __init__(self):
self.client = getClient()
def auth(self):
host, username, password = settings.downloader.host, settings.downloader.username, settings.downloader.password
self.client.auth(host, username, password)
def init_downloader(self):
prefs = {
"rss_auto_downloading_enabled": True,