Skip to content
Snippets Groups Projects
Commit d2c99b9f authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Merge branch '220-fix-mp3-track-numbers' into 'develop'

Resolve "Track numbers from mp3 don't get imported"

Closes #220

See merge request funkwhale/funkwhale!214
parents 9745b57f 8790631a
No related branches found
No related tags found
No related merge requests found
...@@ -132,7 +132,7 @@ CONF = { ...@@ -132,7 +132,7 @@ CONF = {
'getter': get_id3_tag, 'getter': get_id3_tag,
'fields': { 'fields': {
'track_number': { 'track_number': {
'field': 'TPOS', 'field': 'TRCK',
'to_application': convert_track_number 'to_application': convert_track_number
}, },
'title': { 'title': {
......
No preview for this file type
...@@ -43,10 +43,10 @@ def test_can_get_metadata_from_ogg_theora_file(field, value): ...@@ -43,10 +43,10 @@ def test_can_get_metadata_from_ogg_theora_file(field, value):
@pytest.mark.parametrize('field,value', [ @pytest.mark.parametrize('field,value', [
('title', 'Bend'), ('title', 'Bend'),
('artist', 'Binärpilot'), ('artist', 'Bindrpilot'),
('album', 'You Can\'t Stop Da Funk'), ('album', 'You Can\'t Stop Da Funk'),
('date', datetime.date(2006, 2, 7)), ('date', datetime.date(2006, 2, 7)),
('track_number', 1), ('track_number', 2),
('musicbrainz_albumid', uuid.UUID('ce40cdb1-a562-4fd8-a269-9269f98d4124')), ('musicbrainz_albumid', uuid.UUID('ce40cdb1-a562-4fd8-a269-9269f98d4124')),
('musicbrainz_recordingid', uuid.UUID('f269d497-1cc0-4ae4-a0c4-157ec7d73fcb')), ('musicbrainz_recordingid', uuid.UUID('f269d497-1cc0-4ae4-a0c4-157ec7d73fcb')),
('musicbrainz_artistid', uuid.UUID('9c6bddde-6228-4d9f-ad0d-03f6fcb19e13')), ('musicbrainz_artistid', uuid.UUID('9c6bddde-6228-4d9f-ad0d-03f6fcb19e13')),
......
Read ID3Tag Tracknumber from TRCK (#220)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment