1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-22 15:54:26 +00:00

Fixed Anidb refinement for not anime episodes. #2463

This commit is contained in:
Anderson Shindy Oki 2024-04-22 11:11:32 +09:00 committed by GitHub
parent 6dbe143364
commit a2fee0e1e4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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