Commit Graph

1305 Commits

Author SHA1 Message Date
Anna Schumaker c66405bd80 curds: Add basic track class
We account for some fallback values, and also attempt to detect
discnumbers from the album name.

Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2019-02-04 17:01:52 -05:00
Anna Schumaker a26e8867fe curds: Try to detect album names that embed a discnumber
We want to be able to pull out just the album name to make a more
accurate musicbrainz search, and so multiple discs link to the same
album object.

Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2019-01-28 17:00:40 -05:00
Anna Schumaker 306fa0f40c curds: Add function for album lookups
We want to share album objects whenever possible, so add a lookup
function for checking this.  Python built-in objects (like dictionaries)
are supposedly threadsafe, so we don't need a lock to access them but I
added the threadpool test anyway just in case.

Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2019-01-28 16:06:37 -05:00
Anna Schumaker 3b42ca233e curds: Add basic album class
We'll eventually pull out all the fields we need from a Mutagen
FileInfo class, but that has a dictionary-like interface so we can
easily fake one up for testing.

Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2019-01-24 16:27:25 -05:00
Anna Schumaker eecc32359f Initial commit 2019-01-24 09:35:41 -05:00