From 0cd459f9a83e703843e13a8aa4c46c3d033a75dd Mon Sep 17 00:00:00 2001 From: Ave Ozkal Date: Mon, 13 May 2019 12:51:44 +0300 Subject: [PATCH] blobs: Fix matching --- patches/blobs/emojireplace.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/patches/blobs/emojireplace.py b/patches/blobs/emojireplace.py index f98844e..8f84611 100644 --- a/patches/blobs/emojireplace.py +++ b/patches/blobs/emojireplace.py @@ -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