merge-requests/30/head
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 '<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]