From 158465603eb8b1c656268b228819fe3d88924c68 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 5 Sep 2019 11:26:08 +0100 Subject: [PATCH] music links at end of function --- content.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/content.py b/content.py index b17ebe35..e39b0d4d 100644 --- a/content.py +++ b/content.py @@ -207,10 +207,8 @@ def addHtmlTags(baseDir: str,httpPrefix: str, \ """ if content.startswith('

'): return content - words=content.replace('\n',' --linebreak-- ').replace(',',' ').replace(';',' ').split(' ') - - # add music tag if needed - content=addMusicTag(content,'nowplaying') + content=content.replace('\n',' --linebreak-- ') + words=content.replace(',',' ').replace(';',' ').split(' ') # remove . for words which are not mentions wordCtr=0 @@ -265,6 +263,7 @@ def addHtmlTags(baseDir: str,httpPrefix: str, \ content=content.replace(wordStr,replaceStr) content=addWebLinks(content) + content=addMusicTag(content,'nowplaying') content=content.replace(' --linebreak-- ','

') return '

'+content+'

'