View Single Post
Old 11-01-2019, 07:30 PM   #1337
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,257
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
FWIW, calibre's container class does contain a method (container.iterlinks) which can be utilised to achieve this. The container class is under constant development by Kovid and contains many other methods which make epub manipulation less onerous and more reliable.

If 'Modify Epub' was modernised to use this container class, rather than its homegrown equivalent (which pre-dates the newer official version), then I suspect future plugin maintenance/development would become easier in the long run. Unfortunately that modernisation would probably not be a trivial exercise ... and I'm certainly not volunteering to do it .
jackie_w is offline   Reply With Quote