Skip to content

Commit

Permalink
importEHdb: restrict blur_title to BMP
Browse files Browse the repository at this point in the history
  • Loading branch information
URenko committed Mar 11, 2024
1 parent 40cdd03 commit b16c617
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion comiclib/scanner/30-importEHdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ def blur_title(title: str):
return title
if settings.importEHdb_matchtitle == 'exact':
return title
return title.translate(str.maketrans({
# also restrict to Basic Multilingual Plane
return ''.join(map(lambda c:c if ord(c) <= 0xFFFF else '_', title)).translate(str.maketrans({
' ': None,
'_': None,
'(': None,
Expand Down

0 comments on commit b16c617

Please sign in to comment.