mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix bug #5367: Filename Starting with Period Not Showing on Kindle
This commit is contained in:
parent
296da0fdff
commit
83d6bc9a0d
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user