Skip to content

Commit

Permalink
Fixing encrypted IDs that cause decryption to fail
Browse files Browse the repository at this point in the history
  • Loading branch information
cnwxi committed Aug 29, 2024
1 parent 75539b5 commit 686df2a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 0 deletions.
Binary file modified utils/__pycache__/decrypt_epub.cpython-312.pyc
Binary file not shown.
1 change: 1 addition & 0 deletions utils/decrypt_epub.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ def creatNewHerf(_id, _href):
)
else:
image_silm = ""
_id_name = re.sub(r'[\\/:*?%"<>|]', '_', _id_name)
new_href = f"{_id_name}{image_silm}.{_id_extension.lower()}"
print(f"decrypt href: {_id}:{_href} -> {new_href}")
return new_href
Expand Down

0 comments on commit 686df2a

Please sign in to comment.