mirror of https://gitlab.com/bashrc2/epicyon
Tidying
parent
e539d3afc0
commit
c05b569ce6
|
@ -441,6 +441,7 @@ def xml_podcast_to_dict(xml_item: str, xml_str: str) -> {}:
|
||||||
"""
|
"""
|
||||||
if '<podcast:' not in xml_item:
|
if '<podcast:' not in xml_item:
|
||||||
if '<itunes:' not in xml_item:
|
if '<itunes:' not in xml_item:
|
||||||
|
if '<media:thumbnail' not in xml_item:
|
||||||
return {}
|
return {}
|
||||||
|
|
||||||
podcast_properties = {
|
podcast_properties = {
|
||||||
|
@ -525,8 +526,7 @@ def xml_podcast_to_dict(xml_item: str, xml_str: str) -> {}:
|
||||||
episode_image = episode_image.split('"')[0]
|
episode_image = episode_image.split('"')[0]
|
||||||
podcast_episode_image = episode_image
|
podcast_episode_image = episode_image
|
||||||
break
|
break
|
||||||
else:
|
elif '>' in episode_image:
|
||||||
if '>' in episode_image:
|
|
||||||
episode_image = episode_image.split('>')[1]
|
episode_image = episode_image.split('>')[1]
|
||||||
if '<' in episode_image:
|
if '<' in episode_image:
|
||||||
episode_image = episode_image.split('<')[0]
|
episode_image = episode_image.split('<')[0]
|
||||||
|
|
Loading…
Reference in New Issue