add RSSTimeout settings

This commit is contained in:
2022-01-18 18:40:08 +08:00
parent b4f5de2060
commit 0215d5177f
5 changed files with 12 additions and 4 deletions

View File

@@ -59,6 +59,7 @@ class settings:
self._miraiApiHTTPVer = d['miraiApiHTTPVer'] if 'miraiApiHTTPVer' in d and d['miraiApiHTTPVer'] != '' else None
self._blackList = d['blackList'] if 'blackList' in d and d['blackList'] != '' else None
self._downloadTimeOut = int(d['downloadTimeOut']) if 'downloadTimeOut' in d and d['downloadTimeOut'].isnumeric() else 10
self._RSSTimeout = int(d['RSSTimeout']) if 'RSSTimeout' in d and d['RSSTimeout'].isnumeric() else 15
@property
def token(self) -> str:
@@ -124,6 +125,10 @@ class settings:
def downloadTimeOut(self) -> int:
return self._downloadTimeOut
@property
def RSSTimeout(self) -> int:
return self._RSSTimeout
class commandline:
def __init__(self, commandline: List[str] = None):