mirror of
https://github.com/noDRM/DeDRM_tools
synced 2024-11-16 19:48:10 +01:00
fix the regular expression
This commit is contained in:
parent
dcbb377566
commit
012ff533ab
1 changed files with 1 additions and 1 deletions
|
@ -275,7 +275,7 @@ def decryptBook(infile, outdir, kDatabaseFiles, androidFiles, serials, pids):
|
||||||
orig_fn_root = os.path.splitext(os.path.basename(infile))[0]
|
orig_fn_root = os.path.splitext(os.path.basename(infile))[0]
|
||||||
if (
|
if (
|
||||||
re.match('^B[A-Z0-9]{9}(_EBOK|_EBSP|_sample)?$', orig_fn_root) or
|
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
|
): # Kindle for PC / Mac / Android / Fire / iOS
|
||||||
clean_title = cleanup_name(book.getBookTitle())
|
clean_title = cleanup_name(book.getBookTitle())
|
||||||
outfilename = "{}_{}".format(orig_fn_root, clean_title)
|
outfilename = "{}_{}".format(orig_fn_root, clean_title)
|
||||||
|
|
Loading…
Reference in a new issue