Commit Graph

2 Commits (ab14fd15f4b04f9db08cedb136173dd509e44f0f)

Author SHA1 Message Date
Dustin ab14fd15f4 Handle different release date formats
Some release entries in the MusicBrainz database have different formats
for the date field. In particular, a few have only a year value, while
others have a year and month. This commit introduces a new `parse_date`
function that attempts to parse a string into a date using one of the
known formats. The `release_year` function uses this new function to
parse the date and extract the year, but now also returns `None` if the
date could not be parsed or was not present in the record.
2018-11-04 11:51:52 -06:00
Dustin 34eec61179 Initial commit 2018-11-04 11:45:02 -06:00