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
|
||||
'''
|
||||
|
||||
import os
|
||||
import os, errno
|
||||
|
||||
import cStringIO
|
||||
|
||||
@ -111,7 +111,12 @@ class NOOK_COLOR(NOOK):
|
||||
prints('Opened NOOK with product id:', product_id)
|
||||
if product_id == 0xb:
|
||||
if DEBUG:
|
||||
prints('Setting Nook upload directory to NOOK')
|
||||
prints('Setting Nook upload directory to NOOK/My Files')
|
||||
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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user