Better exclusion of default emoji

main
Bob Mottram 2021-05-27 23:19:52 +01:00
parent fab332f780
commit 10cebf49d9
1 changed files with 3 additions and 1 deletions

View File

@ -140,7 +140,9 @@ def metadataCustomEmoji(baseDir: str,
emojisUrl = httpPrefix + '://' + domainFull + '/emoji'
for subdir, dirs, files in os.walk(baseDir + '/emoji'):
for f in files:
if f.startswith('1F') or f.startswith('00') or f.startswith('E0'):
if len(f) < 3:
continue
if f[0].isdigit() or f[1].isdigit():
continue
if not f.endswith('.png'):
continue