View Single Post
Old 09-21-2017, 03:28 AM   #380
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Ok, changing the regex to:

Code:
date_time_re = r'([0-2]?[0-9])[.:]([0-5][0-9])(?::([0-5][0-9])(?:\.([0-9]+))?)?\s*([AP]\.?M|Uhr)?\s*(?:[A-Z]{3}?([+-][0-2]?[0-9](?::[0-5][0-9])?))?'
That should fix the timestamp matching for German. From schnesim last debug log, I thing that will fix the errors " Unable to parse entries from 'My Clippings.txt'". I shouldn't break the other languages. At least no more than they are now.

And looking at the log file, the grouping of errors isn't obvious. There is some indentation, but the above isn't indented properly. The following are how they should be grouped:

Code:
DEBUG:  156.7    title==Kulturgeschichte der Neuzeit (German Edition)
DEBUG:  156.7     Found book_id=-16
DEBUG:  156.7   Unable to parse entries from 'My Clippings.txt'
I'll try and post a beta with the regex tonight. And a more obvious grouping of the messages.
davidfor is offline   Reply With Quote