Quote:
Originally Posted by chaley
You can do it.
I haven't tried it, so it might not compile. Should be close.
I changed the regexp in the re(...) clause to carve out both the date and the percent. If it finds them, then the ifs below choose what to return.
Have fun. 
|
Hi Chaley
You were SO close !
All I had to do was add .* in re.match since the date is not at the start of comments. RTFM helped with that one

Bit tricky to find. Added more return strings to determine that mg was empty.
Now I know what I wish for my birthday: python debugger, line by line, integrated in Calibre

I know, keep dreaming.
How do you debug ? Just looking, trying, etc. ?
@beckywc: Will post my suggestions for you shortly.