yes, I found the "calibredb add -1" option just a few minutes after writing my question :-) (by the way, I'm using calibre 0.6.6 on Gentoo Linux)
I reorganised my collection to look like
<series title>
\
\-- <issue number>
and put all the four different files into the <issue number> directory.
Now I'm calling
$ calibredb add -1 -r /home/hakan/Archive/EBooks/Atlan\ 1-50/Atlan\ 03
to import issue 03, but I'm getting the following error message:
The output in the first line
Traceback (most recent call last):
File "/usr/bin/calibredb", line 8, in <module>
load_entry_point('calibre==0.6.6', 'console_scripts', 'calibredb')()
File "/usr/lib/python2.6/site-packages/calibre/library/cli.py", line 550, in main
return command(args[2:], dbpath)
File "/usr/lib/python2.6/site-packages/calibre/library/cli.py", line 341, in command_add
do_add(get_db(dbpath, opts), args[1:], opts.one_book_per_directory, opts.recurse, opts.duplicates)
File "/usr/lib/python2.6/site-packages/calibre/library/cli.py", line 280, in do_add
dir_dups.extend(db.recursive_import(dir, single_book_per_directory=one_book_per_directory))
File "/usr/lib/python2.6/site-packages/calibre/library/database2.py", line 1780, in recursive_import
single_book_per_directory else \
File "/usr/lib/python2.6/site-packages/calibre/library/database2.py", line 1766, in import_book_directory
mi = metadata_from_formats(formats)
File "/usr/lib/python2.6/site-packages/calibre/ebooks/metadata/meta.py", line 34, in metadata_from_formats
mi = metadata_from_filename(list(formats)[0])
File "/usr/lib/python2.6/site-packages/calibre/ebooks/metadata/meta.py", line 120, in metadata_from_filename
name = name.rpartition('.')[0]
AttributeError: 'list' object has no attribute 'rpartition'
The method metadata_from_filename gets passed the following list (I added a quick "print name" to meta.py, line 119:
[u'/home/hakan/Archive/EBooks/readers_planet/Atlan 1-50/Atlan 03/Atlan Nr 3 - Das Psycho-Team.pdf', u'/home/hakan/Archive/EBooks/readers_planet/Atlan 1-50/Atlan 03/Atlan Nr 3 - Das Psycho-Team.txt', u'/home/hakan/Archive/EBooks/readers_planet/Atlan 1-50/Atlan 03/Atlan Nr 3 - Das Psycho-Team.html', u'/home/hakan/Archive/EBooks/readers_planet/Atlan 1-50/Atlan 03/Atlan Nr 3 - Das Psycho-Team.pdb']
|