Don't tag podcasts as music

main
Bob Mottram 2020-10-11 10:50:17 +01:00
parent 13c067bfa4
commit 82a89aa216
1 changed files with 3 additions and 1 deletions

View File

@ -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')