mirror of https://gitlab.com/bashrc2/epicyon
Skip malformed hashtags
parent
696c4ae962
commit
17ee781190
|
@ -41,6 +41,10 @@ def getHashtagCategoriesFeed(baseDir: str,
|
||||||
rssStr += ' <title>' + categoryStr + '</title>\n'
|
rssStr += ' <title>' + categoryStr + '</title>\n'
|
||||||
listStr = ''
|
listStr = ''
|
||||||
for hashtag in hashtagList:
|
for hashtag in hashtagList:
|
||||||
|
if ':' in hashtag:
|
||||||
|
continue
|
||||||
|
if '&' in hashtag:
|
||||||
|
continue
|
||||||
listStr += hashtag + ' '
|
listStr += hashtag + ' '
|
||||||
rssStr += ' <description>' + listStr.strip() + '</description>\n'
|
rssStr += ' <description>' + listStr.strip() + '</description>\n'
|
||||||
rssStr += ' <link/>\n'
|
rssStr += ' <link/>\n'
|
||||||
|
|
Loading…
Reference in New Issue