Commit Graph

3 Commits (e1f00d6f47d8fb8c62fe79ec90ebf4882cf8539f)

Author SHA1 Message Date
Dustin e1f00d6f47 Improve handling of unmatched releases
Errors encountered when a matching release cannot be found for the disc
are now handled more appropriately. This provides a better indication to
the user of this problem.
2018-11-05 19:20:56 -06:00
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