mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-22 07:56:26 +01:00
MTP driver: Change the default template to not create subfolders as apparently Amazon are even more incompetent than I thought.
This commit is contained in:
parent
433f620b05
commit
2112ee3e17
1 changed files with 2 additions and 3 deletions
|
|
@ -45,13 +45,12 @@ def __init__(self, *args, **kwargs):
|
|||
@property
|
||||
def prefs(self):
|
||||
if self._prefs is None:
|
||||
from calibre.library.save_to_disk import config
|
||||
self._prefs = p = JSONConfig('mtp_devices')
|
||||
p.defaults['format_map'] = self.FORMATS
|
||||
p.defaults['send_to'] = ['Calibre_Companion', 'Books',
|
||||
'eBooks/import', 'eBooks', 'wordplayer/calibretransfer',
|
||||
'sdcard/ebooks', 'kindle']
|
||||
p.defaults['send_template'] = config().parse().send_template
|
||||
p.defaults['send_template'] = '{title} - {authors}'
|
||||
p.defaults['blacklist'] = []
|
||||
p.defaults['history'] = {}
|
||||
p.defaults['rules'] = []
|
||||
|
|
@ -291,7 +290,7 @@ def create_upload_path(self, path, mdata, fname, routing):
|
|||
prefix_path=path,
|
||||
path_type=posixpath,
|
||||
maxlen=self.MAX_PATH_LEN,
|
||||
use_subdirs=True,
|
||||
use_subdirs='/' in self.save_template,
|
||||
news_in_folder=self.NEWS_IN_FOLDER,
|
||||
)
|
||||
return tuple(x for x in filepath.split('/'))
|
||||
|
|
|
|||
Loading…
Reference in a new issue