Skip to content

Commit

Permalink
no log: Fix python deprecated syntax on anidb refiner
Browse files Browse the repository at this point in the history
  • Loading branch information
anderson-oki committed Dec 4, 2024
1 parent dd8c7ad commit 8dc3e5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bazarr/subtitles/refiners/anidb.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def get_show_information(self, tvdb_series_id, tvdb_series_season, episode):
mapping_list = anime.find('mapping-list')

# Handle mapping list for Specials
if mapping_list:
if mapping_list is not None:
for mapping in mapping_list.findall("mapping"):
if mapping.text is None:
continue
Expand Down Expand Up @@ -176,7 +176,7 @@ def get_episodes(self, series_id):

episode_elements = xml_root.find('episodes')

if not episode_elements:
if episode_elements is None:
raise ValueError

return etree.tostring(episode_elements, encoding='utf8', method='xml')
Expand Down

0 comments on commit 8dc3e5d

Please sign in to comment.