Skip to content

Commit

Permalink
Fixed anidb refiner empty mapping episode reference not skipped
Browse files Browse the repository at this point in the history
  • Loading branch information
anderson-oki committed Sep 1, 2024
1 parent 5f7e1f6 commit deae4e5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bazarr/subtitles/refiners/anidb.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ def get_show_information(self, tvdb_series_id, tvdb_series_season, episode):
# Handle mapping list for Specials
if mapping_list:
for mapping in mapping_list.findall("mapping"):
if mapping.text is None:
continue

# Mapping values are usually like ;1-1;2-1;3-1;
for episode_ref in mapping.text.split(';'):
if not episode_ref:
Expand Down

0 comments on commit deae4e5

Please sign in to comment.