From 3d2072aae906a4d0d108887cb144751ce135ff0a Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 13 Jan 2022 21:16:52 +0000 Subject: [PATCH] Add nsfw hashtag to podcasts marked as explicit --- newswire.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/newswire.py b/newswire.py index d30025dfb..915a63c54 100644 --- a/newswire.py +++ b/newswire.py @@ -226,6 +226,9 @@ def _add_newswire_dict_entry(base_dir: str, domain: str, # extract hashtags from the text of the feed post post_tags = get_newswire_tags(all_text, max_tags) + if podcast_properties.get('explicit'): + post_tags.append('#NSFW') + # Include tags from podcast categories if podcast_properties: post_tags += podcast_properties['categories']