forked from rDrama/rDrama
master
parent
61b1b047ea
commit
e252b0bf85
|
@ -685,7 +685,7 @@ def settings_title_change(v):
|
||||||
|
|
||||||
for i in re.finditer(':(.{1,30}?):', new_name):
|
for i in re.finditer(':(.{1,30}?):', new_name):
|
||||||
if path.isfile(f'./files/assets/images/emojis/{i.group(1)}.gif'):
|
if path.isfile(f'./files/assets/images/emojis/{i.group(1)}.gif'):
|
||||||
new_name = new_name.replace(f':{i.group(1)}:', f'<img data-toggle="tooltip" title="{i.group(1)}" delay="0" height=20 src="https://{site}/assets/images/emojis/{i.group(1)}.gif"')
|
new_name = new_name.replace(f':{i.group(1)}:', f'<img data-toggle="tooltip" title="{i.group(1)}" delay="0" height=20 src="https://{site}/assets/images/emojis/{i.group(1)}.gif"<span>')
|
||||||
|
|
||||||
v.customtitle = bleach.clean(new_name, tags=[])
|
v.customtitle = bleach.clean(new_name, tags=[])
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue