rclaudio: process the Group tag

This commit is contained in:
Jean-Francois Dockes 2021-01-27 09:32:55 +01:00
parent 57d47e6784
commit 50b64caf5e

View File

@ -28,6 +28,11 @@ re_pairnum = re.compile(b'''[([]*([0-9]+),\s*([0-9]+)''')
# TRCK,TRK,trkn TRACKNUMBER/TOTALTRACKS # TRCK,TRK,trkn TRACKNUMBER/TOTALTRACKS
# The conversions here are consistent with the ones in MinimServer (2019-03), # The conversions here are consistent with the ones in MinimServer (2019-03),
# including the rating stuff and TXXX. Lacking: Itunes '----' handling ? # including the rating stuff and TXXX. Lacking: Itunes '----' handling ?
# The 'GROUP' tag is a specific minimserver tag used to create
# sub-containers inside a folder. We used to use 'CONTENTGROUP' for
# this, which was wrong, the latter is a vaguely defined "music
# category" thing.
tagdict = { tagdict = {
'ALBUM ARTIST': 'ALBUMARTIST', 'ALBUM ARTIST': 'ALBUMARTIST',
'ALBUM' : 'ALBUM', 'ALBUM' : 'ALBUM',
@ -53,6 +58,7 @@ tagdict = {
'ENCODEDBY' : 'ENCODEDBY', 'ENCODEDBY' : 'ENCODEDBY',
'ENSEMBLE' : 'ORCHESTRA', 'ENSEMBLE' : 'ORCHESTRA',
'GENRE' : 'GENRE', 'GENRE' : 'GENRE',
'GROUP' : 'GROUP',
'ISRC' : 'ISRC', 'ISRC' : 'ISRC',
'LABEL' : 'LABEL', 'LABEL' : 'LABEL',
'LANGUAGE' : 'LANGUAGE', 'LANGUAGE' : 'LANGUAGE',
@ -141,7 +147,7 @@ tagdict = {
'TXXX:ORCHESTRA' : 'ORCHESTRA', 'TXXX:ORCHESTRA' : 'ORCHESTRA',
'TXX:ORCHESTRA' : 'ORCHESTRA', 'TXX:ORCHESTRA' : 'ORCHESTRA',
'TYE' : 'DATE', 'TYE' : 'DATE',
'TYER' : 'DATE', # wikipedia id3: YEAR 'TYER' : 'DATE',# wikipedia id3: YEAR
'ULT' : 'LYRICS', 'ULT' : 'LYRICS',
'USLT' : 'LYRICS', 'USLT' : 'LYRICS',
'YEAR' : 'DATE', 'YEAR' : 'DATE',