Fixed album art not being retrieved from Ogg/Opus files

This commit is contained in:
Eliot Berriot 2019-08-26 14:08:00 +02:00
parent fc9c6f8906
commit 1a1878445c
No known key found for this signature in database
GPG Key ID: DD6965E2476E5C27
4 changed files with 13 additions and 1 deletions

View File

@ -147,6 +147,10 @@ CONF = {
"license": {}, "license": {},
"copyright": {}, "copyright": {},
"genre": {}, "genre": {},
"pictures": {
"field": "metadata_block_picture",
"to_application": clean_ogg_pictures,
},
}, },
}, },
"OggVorbis": { "OggVorbis": {

View File

@ -142,7 +142,14 @@ def test_can_get_metadata_from_id3_mp3_file(field, value):
@pytest.mark.parametrize( @pytest.mark.parametrize(
"name", ["test.mp3", "with_other_picture.mp3", "sample.flac", "with_cover.ogg"] "name",
[
"test.mp3",
"with_other_picture.mp3",
"sample.flac",
"with_cover.ogg",
"with_cover.opus",
],
) )
def test_can_get_pictures(name): def test_can_get_pictures(name):
path = os.path.join(DATA_DIR, name) path = os.path.join(DATA_DIR, name)

Binary file not shown.

View File

@ -0,0 +1 @@
Fixed album art not being retrieved from Ogg/Opus files