Check that podcast text is a string

main
bashrc 2026-04-13 10:57:37 +01:00
parent c90d9c8e10
commit b38457cf4a
1 changed files with 3 additions and 0 deletions

View File

@ -572,6 +572,9 @@ def _valid_podcast_entry(base_dir: str, key: str, entry: {}) -> bool:
return False return False
post_url = remove_html(entry['url']) post_url = remove_html(entry['url'])
else: else:
if not isinstance(entry['text'], str):
print('podcast text is not a string ' + str(entry))
return False
post_url = entry['text'] post_url = entry['text']
if '://' not in post_url: if '://' not in post_url:
return False return False