mirror of https://gitlab.com/bashrc2/epicyon
Add nsfw hashtag to podcasts marked as explicit
parent
dd67e64417
commit
3d2072aae9
|
@ -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']
|
||||
|
|
Loading…
Reference in New Issue