forked from distok/cutthecord
blobs: Fix matching
This commit is contained in:
parent
5551d83368
commit
0cd459f9a8
1 changed files with 6 additions and 3 deletions
|
@ -3,15 +3,18 @@ import os
|
|||
import shutil
|
||||
|
||||
# REPLACE THESE LINES
|
||||
# extracted_discord_path = "/home/ave/Downloads/dic/com.discord-832"
|
||||
# extracted_blobmoji_path = "/home/ave/Downloads/dic/72x72"
|
||||
# extracted_discord_path = "/home/ave/workbench/ctc/com.discord-896"
|
||||
# extracted_blobmoji_path = "/home/ave/workbench/blobmoji/png/72"
|
||||
extracted_discord_path = "/tmp/cutthecord/discord"
|
||||
extracted_blobmoji_path = "/home/ave/blobmoji/png/72"
|
||||
|
||||
|
||||
def clean_emoji_name(name):
|
||||
name = name.lower().replace("_", "-")\
|
||||
.replace("emoji-", "").replace("-fe0f", "")
|
||||
.replace("emoji-u", "")\
|
||||
.replace("emoji-", "")\
|
||||
.replace("-fe0f", "")\
|
||||
.replace("-200d", "")
|
||||
return name
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue