From 82a89aa216c48788fd76146501ea5a5bcc5c2f4b Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 11 Oct 2020 10:50:17 +0100 Subject: [PATCH] Don't tag podcasts as music --- content.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/content.py b/content.py index 6de17eb6..8b140c1f 100644 --- a/content.py +++ b/content.py @@ -264,8 +264,10 @@ def addMusicTag(content: str, tag: str) -> str: """If a music link is found then ensure that the post is tagged appropriately """ + if '#podcast' in content or '#documentary' in content: + return content if '#' not in tag: - tag = '#'+tag + tag = '#' + tag if tag in content: return content musicSites = ('soundcloud.com', 'bandcamp.com')