Reading through the thread (and possibly getting the wrong end of the stick, as it were), I wonder if it's possible to modify the plugin's code this way...
It relies on "bookType" to pull the epub:
Could you replace those few lines to filter on "bookTitle" instead? Something like this:
bookTitle = link.get('title', '')
# Skip covers and thumbnails
if not bookTitle.startswith('image/'):
if bookTitle == 'Recommended compatible epub':
# EPUB books are preferred and always put at the head of the list if found
bookDownloadUrls.insert(0, url)
Since the format of the OPDS feed is (e.g.):
I imagine that makes it very much SE specific . . . so perhaps not the most elegant solution. Presumably there's some regex jiggery-pokery with negative lookaheads that could filter out advanced epubs and kepubs and keep the compatible epub link, but I'm not competent to compose such things!
FWIW. YMMV.
David
--
Scotland