From 06a5ee939a2c0d97193abca9cf60d7d5a65ae14a Mon Sep 17 00:00:00 2001 From: David Magnus Henriques Date: Sat, 26 May 2018 13:06:40 +0200 Subject: [PATCH] Changed ID3Tag for Track-Number to TRCK Until now the ID3Tag for the Track-Number was read from TPOS. The Problem is, that TPOS is the part of the set (eg disc number) and not the track-number. TRCK is the correct tag for the track number. Fixes #220 --- api/funkwhale_api/music/metadata.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/funkwhale_api/music/metadata.py b/api/funkwhale_api/music/metadata.py index 3aa643e56..5c8c065f5 100644 --- a/api/funkwhale_api/music/metadata.py +++ b/api/funkwhale_api/music/metadata.py @@ -67,7 +67,7 @@ VALIDATION = { CONF = { 'OggVorbis': { - 'getter': lambda f, k: f[k][0], + 'getter': lambda f, k: f[kTr][0], 'fields': { 'track_number': { 'field': 'TRACKNUMBER', @@ -132,7 +132,7 @@ CONF = { 'getter': get_id3_tag, 'fields': { 'track_number': { - 'field': 'TPOS', + 'field': 'TRCK', 'to_application': convert_track_number }, 'title': {