View Single Post
Old 05-31-2017, 08:00 PM   #2510
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by nemiere View Post
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
knc1 is offline   Reply With Quote