Less indentation

merge-requests/30/head
Bob Mottram 2024-07-15 20:34:16 +01:00
parent c47b0eb7a1
commit 62fa727fbb
1 changed files with 5 additions and 4 deletions

View File

@ -431,10 +431,11 @@ def _xml2str_to_hashtag_categories(base_dir: str, xml_str: str,
if 'CDATA' in hashtag_list_str:
continue
hashtag_list = hashtag_list_str.split(' ')
if not is_blocked_hashtag(base_dir, category_str):
for hashtag in hashtag_list:
set_hashtag_category(base_dir, hashtag, category_str,
False, force)
if is_blocked_hashtag(base_dir, category_str):
continue
for hashtag in hashtag_list:
set_hashtag_category(base_dir, hashtag, category_str,
False, force)
def _get_podcast_categories(xml_item: str, xml_str: str) -> str: