Quote:
Originally Posted by nemiere
Last version of this excellent ScreenSavers hack fail to extract a cover from some ebooks in a "new slight variation" of kfx format developed by Amazon from last January.
While waiting for a proper fix by masters @NiLuJe or @jhowell, you can try this quick and dirty patch to file
Code:
src/linkss/bin/kfxmeta.py
:
Code:
$ diff kfxmeta-orig.py kfxmeta.py
264c264,267
< for value1 in entity_value[b"categorised_metadata"]:
---
> target = entity_value
> if entity_value.has_key("type") and entity_value["type"] == b"P2":
> target = entity_value["value"]
> for value1 in target[b"categorised_metadata"]:
It works for all my kfx amazon ebooks ("old" and "new" variations).
|
Thank you for that.
I do not know when it will get put into the release package, since the maintainer (and author), NiLuJe is away at school.
Since it is a Python script, anyone who types carefully (or knows how to use 'patch') can make the change in their own copy.
The only persons that can change attachments is the post owner or a forum moderator.
In this case, both of those people are: NiLuJe