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
merge-requests/237/head
David Magnus Henriques 2018-05-26 13:06:40 +02:00
rodzic c6cd3abf9d
commit 06a5ee939a
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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': {