mirror of https://gitlab.com/bashrc2/epicyon
Emoji debug
parent
77c047c8f5
commit
12b112ae97
23
content.py
23
content.py
|
@ -355,11 +355,12 @@ def replace_emoji_from_tags(session, base_dir: str,
|
||||||
replace_char)
|
replace_char)
|
||||||
replaced = True
|
replaced = True
|
||||||
except BaseException:
|
except BaseException:
|
||||||
print('EX: replace_emoji_from_tags 1 ' +
|
if debug:
|
||||||
'no conversion of ' +
|
print('EX: replace_emoji_from_tags 1 ' +
|
||||||
str(icon_name) + ' to chr ' +
|
'no conversion of ' +
|
||||||
tag_item['name'] + ' ' +
|
str(icon_name) + ' to chr ' +
|
||||||
tag_item['icon']['url'])
|
tag_item['name'] + ' ' +
|
||||||
|
tag_item['icon']['url'])
|
||||||
if not replaced:
|
if not replaced:
|
||||||
_save_custom_emoji(session, base_dir,
|
_save_custom_emoji(session, base_dir,
|
||||||
tag_item['name'],
|
tag_item['name'],
|
||||||
|
@ -377,11 +378,13 @@ def replace_emoji_from_tags(session, base_dir: str,
|
||||||
replaced = True
|
replaced = True
|
||||||
except BaseException:
|
except BaseException:
|
||||||
icon_code_sequence = ''
|
icon_code_sequence = ''
|
||||||
print('EX: replace_emoji_from_tags 2 ' +
|
if debug:
|
||||||
'no conversion of ' +
|
print('EX: ' +
|
||||||
str(icode) + ' to chr ' +
|
'replace_emoji_from_tags 2 ' +
|
||||||
tag_item['name'] + ' ' +
|
'no conversion of ' +
|
||||||
tag_item['icon']['url'])
|
str(icode) + ' to chr ' +
|
||||||
|
tag_item['name'] + ' ' +
|
||||||
|
tag_item['icon']['url'])
|
||||||
if not replaced:
|
if not replaced:
|
||||||
_save_custom_emoji(session, base_dir,
|
_save_custom_emoji(session, base_dir,
|
||||||
tag_item['name'],
|
tag_item['name'],
|
||||||
|
|
Loading…
Reference in New Issue