blobs: Fix matching

This commit is contained in:
ave 2019-05-13 12:51:44 +03:00
parent 5551d83368
commit 0cd459f9a8
No known key found for this signature in database
GPG key ID: 09356ABAA42C842B

View file

@ -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