mirror of
https://github.com/morpheus65535/bazarr
synced 2025-03-14 16:08:49 +00:00
Fixed anidb refiner special episodes without offset (#2736)
This commit is contained in:
parent
239ab780eb
commit
23c19db2e2
1 changed files with 3 additions and 3 deletions
|
@ -91,11 +91,11 @@ class AniDBClient(object):
|
|||
return None, None, None
|
||||
|
||||
is_special_entry = True
|
||||
|
||||
for special_entry in special_entries:
|
||||
mapping_list = special_entry.findall(f".//mapping[@tvdbseason='{tvdb_series_season}']")
|
||||
if len(mapping_list) > 0:
|
||||
anidb_id = int(special_entry.attrib.get('anidbid'))
|
||||
offset = int(mapping_list[0].attrib.get('offset', 0))
|
||||
anidb_id = int(special_entry.attrib.get('anidbid'))
|
||||
offset = int(mapping_list[0].attrib.get('offset', 0)) if len(mapping_list) > 0 else 0
|
||||
|
||||
if not is_special_entry:
|
||||
# Sort the anime by offset in ascending order
|
||||
|
|
Loading…
Add table
Reference in a new issue