Thanks, I managed to solve it now by looking at the stacktrace.
The issue was I was searching for html tags that were already stripped off (via the remove_tags_before and remove_tags_after), so contents[0] was called on the NoneType.
Btw, shouldn't "ebook-convert -?" return info about the -vv option?
|