From 97f078818a4f5b8513116a6032224d4e2f1dd7d9 Mon Sep 17 00:00:00 2001 From: EstrellaXD Date: Mon, 18 Jul 2022 10:51:40 +0800 Subject: [PATCH] =?UTF-8?q?2.5.15=20-=20=E8=B0=83=E6=95=B4=20LOG=20?= =?UTF-8?q?=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/rss_analyser.py | 2 +- src/network/request.py | 2 +- src/parser/analyser/raw_parser.py | 2 +- src/parser/title_parser.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/rss_analyser.py b/src/core/rss_analyser.py index 970ecfc8..5b7c1f0c 100644 --- a/src/core/rss_analyser.py +++ b/src/core/rss_analyser.py @@ -25,7 +25,7 @@ class RSSAnalyser: if bangumi_info is not []: for d in bangumi_info: if re.search(d["title_raw"], raw_title) is not None: - logger.debug(f"Had added {d['title_raw']} before") + logger.debug(f"Had added {d['title_raw']} in auto_download rule before") extra_add = False break if extra_add: diff --git a/src/network/request.py b/src/network/request.py index 63851363..313ec4d4 100644 --- a/src/network/request.py +++ b/src/network/request.py @@ -38,7 +38,7 @@ class RequestURL: return req except Exception as e: logger.debug(f"URL: {url}") - logger.warning("ERROR with DNS/Connection.") + logger.warning("ERROR with Connection.Please check DNS/Connection settings") time.sleep(settings.connect_retry_interval) times += 1 diff --git a/src/parser/analyser/raw_parser.py b/src/parser/analyser/raw_parser.py index d4e54e84..e1d5188d 100644 --- a/src/parser/analyser/raw_parser.py +++ b/src/parser/analyser/raw_parser.py @@ -155,7 +155,7 @@ class RawParser: name_en, name_zh, name_jp, season, sr, episode, \ sub, dpi, source, group = ret except Exception as e: - logger.error(f"ERROR match {raw} {e}") + logger.error(f"Parser cannot analyse {raw} {e}") return None return Episode(name_en, name_zh, name_jp, season, sr, episode, sub, group, dpi, source) diff --git a/src/parser/title_parser.py b/src/parser/title_parser.py index 6420d2d5..2355264a 100644 --- a/src/parser/title_parser.py +++ b/src/parser/title_parser.py @@ -22,7 +22,7 @@ class TitleParser: official_title, tmdb_season = None, None try: tmdb_info = self._tmdb_parser.tmdb_search(title) - logger.debug(f"TMDB Matched, title is {tmdb_info.title_zh}") + logger.debug(f"TMDB Matched, official title is {tmdb_info.title_zh}") except Exception as e: logger.warning("Not Matched with TMDB") return title, season