mirror of
https://github.com/morpheus65535/bazarr
synced 2025-02-23 14:31:06 +00:00
no log: Fix python deprecated syntax on anidb refiner
This commit is contained in:
parent
dd8c7ad6fd
commit
8dc3e5d706
1 changed files with 2 additions and 2 deletions
|
@ -111,7 +111,7 @@ class AniDBClient(object):
|
|||
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
|
||||
|
@ -176,7 +176,7 @@ class AniDBClient(object):
|
|||
|
||||
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')
|
||||
|
|
Loading…
Reference in a new issue