mirror of https://gitlab.com/bashrc2/epicyon
Tidying
parent
2fc66213d8
commit
1a2bfd90ce
|
@ -508,12 +508,12 @@ def xml_podcast_to_dict(xml_item: str, xml_str: str) -> {}:
|
||||||
if pod_text:
|
if pod_text:
|
||||||
pod_entry['text'] = pod_text
|
pod_entry['text'] = pod_text
|
||||||
|
|
||||||
|
appended = False
|
||||||
if pod_key + 's' in podcast_properties:
|
if pod_key + 's' in podcast_properties:
|
||||||
if isinstance(podcast_properties[pod_key + 's'], list):
|
if isinstance(podcast_properties[pod_key + 's'], list):
|
||||||
podcast_properties[pod_key + 's'].append(pod_entry)
|
podcast_properties[pod_key + 's'].append(pod_entry)
|
||||||
else:
|
appended = True
|
||||||
podcast_properties[pod_key] = pod_entry
|
if not appended:
|
||||||
else:
|
|
||||||
podcast_properties[pod_key] = pod_entry
|
podcast_properties[pod_key] = pod_entry
|
||||||
ctr += 1
|
ctr += 1
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue