main2
Bob Mottram 2019-09-23 12:07:01 +01:00
parent 50b22d5126
commit d39dfa3f47
1 changed files with 9 additions and 9 deletions

View File

@ -250,10 +250,10 @@ def addHtmlTags(baseDir: str,httpPrefix: str, \
continue continue
if addHashTags(wordStr,httpPrefix,originalDomain,replaceHashTags,hashtags): if addHashTags(wordStr,httpPrefix,originalDomain,replaceHashTags,hashtags):
continue continue
if not emojiDict:
if len(wordStr)>2: if len(wordStr)>2:
if wordStr.startswith(':') and ':' in wordStr[1:] and not emojiDict: if wordStr.startswith(':'):
if not wordStr.endswith(':'): if wordStr.endswith(':'):
wordStr=':'+wordStr[1:].split(':')[0]+':'
print('Loading emoji lookup') print('Loading emoji lookup')
if not os.path.isfile(baseDir+'/emoji/emoji.json'): if not os.path.isfile(baseDir+'/emoji/emoji.json'):
copyfile(baseDir+'/emoji/default_emoji.json',baseDir+'/emoji/emoji.json') copyfile(baseDir+'/emoji/default_emoji.json',baseDir+'/emoji/emoji.json')