mirror of https://gitlab.com/bashrc2/epicyon
Add music tags first
parent
158465603e
commit
e0d29fff81
|
@ -208,6 +208,7 @@ def addHtmlTags(baseDir: str,httpPrefix: str, \
|
||||||
if content.startswith('<p>'):
|
if content.startswith('<p>'):
|
||||||
return content
|
return content
|
||||||
content=content.replace('\n',' --linebreak-- ')
|
content=content.replace('\n',' --linebreak-- ')
|
||||||
|
content=addMusicTag(content,'nowplaying')
|
||||||
words=content.replace(',',' ').replace(';',' ').split(' ')
|
words=content.replace(',',' ').replace(';',' ').split(' ')
|
||||||
|
|
||||||
# remove . for words which are not mentions
|
# remove . for words which are not mentions
|
||||||
|
@ -263,7 +264,6 @@ def addHtmlTags(baseDir: str,httpPrefix: str, \
|
||||||
content=content.replace(wordStr,replaceStr)
|
content=content.replace(wordStr,replaceStr)
|
||||||
|
|
||||||
content=addWebLinks(content)
|
content=addWebLinks(content)
|
||||||
content=addMusicTag(content,'nowplaying')
|
|
||||||
content=content.replace(' --linebreak-- ','</p><p>')
|
content=content.replace(' --linebreak-- ','</p><p>')
|
||||||
return '<p>'+content+'</p>'
|
return '<p>'+content+'</p>'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue