Add music tags first

master
Bob Mottram 2019-09-05 11:29:09 +01:00
parent 158465603e
commit e0d29fff81
1 changed files with 1 additions and 1 deletions

View File

@ -208,6 +208,7 @@ def addHtmlTags(baseDir: str,httpPrefix: str, \
if content.startswith('<p>'):
return content
content=content.replace('\n',' --linebreak-- ')
content=addMusicTag(content,'nowplaying')
words=content.replace(',',' ').replace(';',' ').split(' ')
# remove . for words which are not mentions
@ -263,7 +264,6 @@ def addHtmlTags(baseDir: str,httpPrefix: str, \
content=content.replace(wordStr,replaceStr)
content=addWebLinks(content)
content=addMusicTag(content,'nowplaying')
content=content.replace(' --linebreak-- ','</p><p>')
return '<p>'+content+'</p>'