Skip to content

Commit

Permalink
Fixed Anidb refinement for not anime episodes. #2463
Browse files Browse the repository at this point in the history
  • Loading branch information
anderson-oki authored Apr 22, 2024
1 parent 6dbe143 commit a2fee0e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bazarr/subtitles/refiners/anidb.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,16 +115,16 @@ def get_episodes(self, series_id):


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
Expand Down

0 comments on commit a2fee0e

Please sign in to comment.