main
Bob Mottram 2022-01-14 18:05:29 +00:00
parent e539d3afc0
commit c05b569ce6
1 changed files with 9 additions and 9 deletions

View File

@ -441,6 +441,7 @@ def xml_podcast_to_dict(xml_item: str, xml_str: str) -> {}:
"""
if '<podcast:' not in xml_item:
if '<itunes:' not in xml_item:
if '<media:thumbnail' not in xml_item:
return {}
podcast_properties = {
@ -525,8 +526,7 @@ def xml_podcast_to_dict(xml_item: str, xml_str: str) -> {}:
episode_image = episode_image.split('"')[0]
podcast_episode_image = episode_image
break
else:
if '>' in episode_image:
elif '>' in episode_image:
episode_image = episode_image.split('>')[1]
if '<' in episode_image:
episode_image = episode_image.split('<')[0]