View Single Post
Old 02-18-2021, 05:57 PM   #8
Bradles
Zealot
Bradles turned on, tuned in, and dropped out.Bradles turned on, tuned in, and dropped out.Bradles turned on, tuned in, and dropped out.Bradles turned on, tuned in, and dropped out.Bradles turned on, tuned in, and dropped out.Bradles turned on, tuned in, and dropped out.Bradles turned on, tuned in, and dropped out.Bradles turned on, tuned in, and dropped out.Bradles turned on, tuned in, and dropped out.Bradles turned on, tuned in, and dropped out.Bradles turned on, tuned in, and dropped out.
 
Bradles's Avatar
 
Posts: 112
Karma: 35586
Join Date: Nov 2020
Location: Perth, Western Australia
Device: Apple Books & Kobo Libra H20
Quote:
Originally Posted by aborel View Post
<snip>

Now here I am seeing a plugin that looks interesting to me, I'm observing that it requires Calibre >= 5.0.0, and I'm just curious on the strength of this requirement. Not disappointed, not frustrated, just curious. I don't mean that it needs to be 4.X-compatible, I'm just interested in testing that possibility. And apparently it will take more than a single code change, as far as I can tell from my first quick test. Not a huge problem, but perhaps a fun challenge.

And now, returning to the original topic: kudos to Bradles for the cool idea, obviously!
Thanks aborel.

To answer your question, I would say it requires Python 3 / calibre 5. Why? Well, I'm a very inexperienced python developer, so I had to look up nearly EVERYTHING! Where there was a choice how to do something, I usually chose the python 3 version. Examples:
  • conditional assignment - if (a = b):
  • setting logging level with a string
  • ordered dictionaries (more an assumption than requirement)

I suspect it would be quite difficult to unpack. (I did a quick test with 4.23.)

I hesitated to upgrade to 5 as well. I eventually concluded that a certain plugin would NEVER be finished, so the parts that were working were good enough for me.

IMO the suggestion of upgrading to 5 and keeping a portable 4 "for emergencies" is the way to go.
Bradles is offline