mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Nook driver: Fix books sent via calibre not appearing under My Files on the Glowlight 3 Plus
This commit is contained in:
parent
9ede39bcd1
commit
8cc31fa4d4
@ -8,7 +8,7 @@ __docformat__ = 'restructuredtext en'
|
|||||||
Device driver for Barns and Nobel's Nook
|
Device driver for Barns and Nobel's Nook
|
||||||
'''
|
'''
|
||||||
|
|
||||||
import os
|
import os, errno
|
||||||
|
|
||||||
import cStringIO
|
import cStringIO
|
||||||
|
|
||||||
@ -111,8 +111,13 @@ class NOOK_COLOR(NOOK):
|
|||||||
prints('Opened NOOK with product id:', product_id)
|
prints('Opened NOOK with product id:', product_id)
|
||||||
if product_id == 0xb:
|
if product_id == 0xb:
|
||||||
if DEBUG:
|
if DEBUG:
|
||||||
prints('Setting Nook upload directory to NOOK')
|
prints('Setting Nook upload directory to NOOK/My Files')
|
||||||
self.EBOOK_DIR_MAIN = 'NOOK'
|
self.EBOOK_DIR_MAIN = 'NOOK/My Files'
|
||||||
|
try:
|
||||||
|
os.makedirs(os.path.join(self._main_prefix, *self.EBOOK_DIR_MAIN.split('/')))
|
||||||
|
except EnvironmentError as err:
|
||||||
|
if err.errno != errno.EEXIST:
|
||||||
|
self.EBOOK_DIR_MAIN = 'NOOK'
|
||||||
|
|
||||||
def get_carda_ebook_dir(self, for_upload=False):
|
def get_carda_ebook_dir(self, for_upload=False):
|
||||||
if for_upload:
|
if for_upload:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user