- Rewrite config class

- Change multiprocessing to thread
- black all code
This commit is contained in:
EstrellaXD
2023-05-06 23:47:44 +08:00
parent d7a41d7404
commit 5c71b9d35d
38 changed files with 400 additions and 313 deletions

View File

@@ -24,9 +24,8 @@ class RSSAnalyser:
_id = op.gen_id()
for raw_title in add_title_list:
data = self._title_analyser.raw_parser(
raw=raw_title,
_id=_id,
settings=self.settings)
raw=raw_title, _id=_id, settings=self.settings
)
if data is not None and op.match_title(data.official_title) is None:
data_list.append(data)
_id += 1
@@ -39,8 +38,7 @@ class RSSAnalyser:
for torrent in rss_torrents:
try:
data = self._title_analyser.raw_parser(
torrent.name,
settings=self.settings
torrent.name, settings=self.settings
)
return data
except Exception as e: