diff options
author | Yuki Liu <[email protected]> | 2022-04-15 11:02:18 -0500 |
---|---|---|
committer | noDRM <[email protected]> | 2022-04-21 12:54:17 +0000 |
commit | 012ff533ab6ba6920813284a4eb7f46e4dc81831 (patch) | |
tree | 26677f496c20de7f9b567bbcd1be835f6a2978eb | |
parent | dcbb3775667ab716f2da0c61d97000750cd7f88e (diff) |
fix the regular expression
-rw-r--r-- | DeDRM_plugin/k4mobidedrm.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/DeDRM_plugin/k4mobidedrm.py b/DeDRM_plugin/k4mobidedrm.py index e048a03..3ddb9e8 100644 --- a/DeDRM_plugin/k4mobidedrm.py +++ b/DeDRM_plugin/k4mobidedrm.py @@ -275,7 +275,7 @@ def decryptBook(infile, outdir, kDatabaseFiles, androidFiles, serials, pids): orig_fn_root = os.path.splitext(os.path.basename(infile))[0] if ( re.match('^B[A-Z0-9]{9}(_EBOK|_EBSP|_sample)?$', orig_fn_root) or - re.match('^{0-9A-F-}{36}$', orig_fn_root) + re.match('^[0-9A-F-]{36}$', orig_fn_root) ): # Kindle for PC / Mac / Android / Fire / iOS clean_title = cleanup_name(book.getBookTitle()) outfilename = "{}_{}".format(orig_fn_root, clean_title) |