mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #8159 (Calibre thinks that the Memory Card is Main Memory.)
This commit is contained in:
parent
bcfbe81888
commit
206d4982ab
@ -63,7 +63,13 @@ class WinPNPScanner(object):
|
|||||||
order = 0
|
order = 0
|
||||||
match = re.search(r'REV_.*?&(\d+)#', pnp_id)
|
match = re.search(r'REV_.*?&(\d+)#', pnp_id)
|
||||||
if match is None:
|
if match is None:
|
||||||
match = re.search(r'REV_.*?&(\d+)', pnp_id)
|
# Windows XP
|
||||||
|
# On the Nook Color this is the last digit
|
||||||
|
#
|
||||||
|
# USBSTOR\DISK&VEN_B&N&PROD_EBOOK_DISK&REV_0100\7&13EAFDB8&0&2004760017462009&1
|
||||||
|
# USBSTOR\DISK&VEN_B&N&PROD_EBOOK_DISK&REV_0100\7&13EAFDB8&0&2004760017462009&0
|
||||||
|
#
|
||||||
|
match = re.search(r'REV_.*&(\d+)', pnp_id)
|
||||||
if match is not None:
|
if match is not None:
|
||||||
order = int(match.group(1))
|
order = int(match.group(1))
|
||||||
return order
|
return order
|
||||||
|
Loading…
x
Reference in New Issue
Block a user