Fix bug #5367: Filename Starting with Period Not Showing on Kindle

This commit is contained in:
John Schember 2010-04-25 20:44:20 -04:00
parent 296da0fdff
commit 83d6bc9a0d

View File

@ -60,6 +60,10 @@ class KINDLE(USBMS):
'replace') 'replace')
return mi return mi
def filename_callback(self, fname, mi):
if fname.startswith('.'):
return fname[1:]
def get_annotations(self, path_map): def get_annotations(self, path_map):
MBP_FORMATS = [u'azw', u'mobi', u'prc', u'txt'] MBP_FORMATS = [u'azw', u'mobi', u'prc', u'txt']
mbp_formats = set(MBP_FORMATS) mbp_formats = set(MBP_FORMATS)