summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAnderson Shindy Oki <[email protected]>2024-04-22 11:11:32 +0900
committerGitHub <[email protected]>2024-04-21 22:11:32 -0400
commita2fee0e1e416bb45574cac9841f96c2e2cfe0303 (patch)
tree21f46f64c4a9f3af49cd62d4ae27b18a09dcdb5f
parent6dbe1433644b1bc35a631e2f3758cfe8ddcc3b0b (diff)
downloadbazarr-a2fee0e1e416bb45574cac9841f96c2e2cfe0303.tar.gz
bazarr-a2fee0e1e416bb45574cac9841f96c2e2cfe0303.zip
Fixed Anidb refinement for not anime episodes. #2463v1.4.3-beta.24
-rw-r--r--bazarr/subtitles/refiners/anidb.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/bazarr/subtitles/refiners/anidb.py b/bazarr/subtitles/refiners/anidb.py
index 2174e0f7c..15bc46c95 100644
--- a/bazarr/subtitles/refiners/anidb.py
+++ b/bazarr/subtitles/refiners/anidb.py
@@ -115,16 +115,16 @@ class AniDBClient(object):
def refine_from_anidb(path, video):
+ if not isinstance(video, Episode) or not video.series_tvdb_id:
+ logging.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:
refine_anidb_ids(video)
def refine_anidb_ids(video):
- if not isinstance(video, Episode) and not video.series_tvdb_id:
- logging.debug(f'Video is not an Anime TV series, skipping refinement for {video}')
-
- return video
-
anidb_client = AniDBClient(settings.anidb.api_client, settings.anidb.api_client_ver)
season = video.season if video.season else 0