triplem / discogstagger

Console based audio-file metadata tagger that uses the Discogs.com API v2 (JSON based). Relies on the Mutagen and discogs-client libraries. Currently supports FLAC and MP3 file types.
MIT License
2 stars 1 forks source link

add "local" datasource, reuse DummyResponse from tests, needed to easily work around errors #7

Open triplem opened 10 years ago

triplem commented 10 years ago

The metadata should be read locally, but pictures should get fetched from the discogs servers. Therefor the datasource should be called local_discogs (the source is the discogs json anyways).

Probably in a later version we do create our own "metadata"-format, but this is not really necessary.

triplem commented 10 years ago

First draft to use a local metadata source. We are using discogs_id as the id name and "local" as name.

DummyResponse from "_common_test.py" should be adopted to use same functionality (new class in discogsalbum.py). Furthermore add tests to increase test coverage to above 80% again.