mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-02 15:45:41 +01:00
Fix #5367 (Filename Starting with Period Not Showing on Kindle)
This commit is contained in:
commit
6adf67e8aa
1 changed files with 4 additions and 0 deletions
|
|
@ -60,6 +60,10 @@ def metadata_from_path(cls, path):
|
|||
'replace')
|
||||
return mi
|
||||
|
||||
def filename_callback(self, fname, mi):
|
||||
if fname.startswith('.'):
|
||||
return 'x'+fname[1:]
|
||||
|
||||
def get_annotations(self, path_map):
|
||||
MBP_FORMATS = [u'azw', u'mobi', u'prc', u'txt']
|
||||
mbp_formats = set(MBP_FORMATS)
|
||||
|
|
|
|||
Loading…
Reference in a new issue