View Single Post
Old 08-07-2019, 06:11 AM   #272
dmshal
Junior Member
dmshal began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Dec 2012
Location: Estonia
Device: ONYX BOOX Note Pro, PocketBook InkPad 3
Thank you so much for your magnificent work!

There is one small issue. I tried to convert one book from kindle and got an error:

Code:
calibre, version 3.45.2
ERROR: KFX conversion failed: 
Cannot convert The World of Ice & Fire: The Untold History of Westeros and the Game of Thrones (A Song of Ice and Fire)
KeyError(u'YJFragmentList get has multiple matches for resource/9bL8CjDiTligvU9RQVBkyw8:: $417::: 
resource/9bL8CjDiTligvU9RQVBkyw8:: $417::, 
resource/9bL8CjDiTligvU9RQVBkyw8:: $417::',)
It seems that all 3 matches are the same: resource $417

I just commented the lines #322 and #323 in the yj_container.py to convert that book:
Code:
# if len(matches) > 1 and not first
#    raise KeyError("YJFragmentList get has multiple matches for %s: %s" % .
Maybe it makes sense to automatically correct errors of this kind (when all matches coincide or only one match has the correct resource)
dmshal is offline   Reply With Quote