Less indentation

merge-requests/30/head
Bob Mottram 2024-07-15 20:38:12 +01:00
parent 62fa727fbb
commit ceaaa8aec0
1 changed files with 23 additions and 21 deletions

View File

@ -871,8 +871,10 @@ def _xml2str_to_dict(base_dir: str, domain: str, xml_str: str,
unique_string_identifier = title + ' ' + link unique_string_identifier = title + ' ' + link
pub_date_str = parse_feed_date(pub_date, unique_string_identifier) pub_date_str = parse_feed_date(pub_date, unique_string_identifier)
if pub_date_str: if not pub_date_str:
if _valid_feed_date(pub_date_str): continue
if not _valid_feed_date(pub_date_str):
continue
post_filename = '' post_filename = ''
votes_status = [] votes_status = []
podcast_properties = \ podcast_properties = \