summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAnderson Shindy Oki <[email protected]>2024-08-10 14:11:42 +0900
committerAnderson Shindy Oki <[email protected]>2024-08-10 14:11:42 +0900
commit8c68fba85d668606fd47b5ac15571a732ef20c04 (patch)
treef8367f95158f045dc750673de487aae7613ac76a
parentbaae406a0213c8efd6d626ed71761db27e192c04 (diff)
downloadbazarr-8c68fba85d668606fd47b5ac15571a732ef20c04.tar.gz
bazarr-8c68fba85d668606fd47b5ac15571a732ef20c04.zip
no log: Remove missleading anime logsv1.4.4-beta.31
-rw-r--r--bazarr/subtitles/refiners/anidb.py2
-rw-r--r--bazarr/subtitles/refiners/anilist.py6
2 files changed, 4 insertions, 4 deletions
diff --git a/bazarr/subtitles/refiners/anidb.py b/bazarr/subtitles/refiners/anidb.py
index 5faa9878a..ea56adc3d 100644
--- a/bazarr/subtitles/refiners/anidb.py
+++ b/bazarr/subtitles/refiners/anidb.py
@@ -197,8 +197,6 @@ class AniDBClient(object):
def refine_from_anidb(path, video):
if not isinstance(video, Episode) or not video.series_tvdb_id:
- logger.debug(f'Video is not an Anime TV series, skipping refinement for {video}')
-
return
if refined_providers.intersection(settings.general.enabled_providers) and video.series_anidb_id is None:
diff --git a/bazarr/subtitles/refiners/anilist.py b/bazarr/subtitles/refiners/anilist.py
index 3d0bb7b35..4a008a5e1 100644
--- a/bazarr/subtitles/refiners/anilist.py
+++ b/bazarr/subtitles/refiners/anilist.py
@@ -13,6 +13,7 @@ from subliminal import Episode, region, __short_version__
logger = logging.getLogger(__name__)
refined_providers = {'jimaku'}
+
class AniListClient(object):
def __init__(self, session=None, timeout=10):
self.session = session or requests.Session()
@@ -47,16 +48,17 @@ class AniListClient(object):
logger.debug(f"Could not find corresponding AniList ID with '{mapped_tag}': {candidate_id_value}")
return None
+
def refine_from_anilist(path, video):
# Safety checks
if isinstance(video, Episode):
if not video.series_anidb_id:
- logger.error(f"Will not refine '{video.series}' as it does not have an AniDB ID.")
return
if refined_providers.intersection(settings.general.enabled_providers) and video.anilist_id is None:
refine_anilist_ids(video)
+
def refine_anilist_ids(video):
anilist_client = AniListClient()
@@ -74,4 +76,4 @@ def refine_anilist_ids(video):
if not anilist_id:
return video
- video.anilist_id = anilist_id \ No newline at end of file
+ video.anilist_id = anilist_id