View Single Post
Old 03-09-2014, 01:19 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,405
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
list the files on your kindle

find /media/Kindle (or whatever)

then delete the one that has bogus bytes in its filename.

And if you cannot find the file by inspecting the list, use this one-liner
Code:
calibre-debug -c "from calibre import walk; files = [f.decode('utf-8', 'replace') for f in walk(b'/media/Kindle')]; print b'\n'.join(f.encode('utf-8') for f in files if u'\ufffd' in f)"
Replace /media/Kindle above with the path to your kindle.
kovidgoyal is offline   Reply With Quote