Open pyhedgehog opened 2 years ago
I just installed music_tag and the current version still has this issue. Since by definition re.match matches the beginning of the string, I simply remover the $ in the match string. Changed:
re.match(r'^[0-9]{4}[-\s][0-9]{2}[-\s][0-9]{2}$', year):
to:
re.match(r'^[0-9]{4}[-\s][0-9]{2}[-\s][0-9]{2}', year): # Remover $ at end of string
and it worked fine
I've got error:
ValueError: Could not extract year from: 2014-11-18 15:05:00
I propose following patch tosanitize_year()
:instead of