forked from indymedia/epicyon
Don't tag podcasts as music
parent
13c067bfa4
commit
82a89aa216
|
@ -264,8 +264,10 @@ def addMusicTag(content: str, tag: str) -> str:
|
||||||
"""If a music link is found then ensure that the post is
|
"""If a music link is found then ensure that the post is
|
||||||
tagged appropriately
|
tagged appropriately
|
||||||
"""
|
"""
|
||||||
|
if '#podcast' in content or '#documentary' in content:
|
||||||
|
return content
|
||||||
if '#' not in tag:
|
if '#' not in tag:
|
||||||
tag = '#'+tag
|
tag = '#' + tag
|
||||||
if tag in content:
|
if tag in content:
|
||||||
return content
|
return content
|
||||||
musicSites = ('soundcloud.com', 'bandcamp.com')
|
musicSites = ('soundcloud.com', 'bandcamp.com')
|
||||||
|
|
Loading…
Reference in New Issue