id3pp: add genre (TCON)

This commit is contained in:
DarkCat09 2024-04-28 14:02:07 +04:00
parent 7669127826
commit 80a7d2bde5
Signed by: DarkCat09
GPG key ID: 0A26CD5B3345D6E3

View file

@ -57,6 +57,8 @@ class ID3TagsPP(PostProcessor):
file['TDRC'] = id3.TDRC(encoding=ENC_UTF8, text=str(information['release_year'])) file['TDRC'] = id3.TDRC(encoding=ENC_UTF8, text=str(information['release_year']))
if 'track_number' in information: if 'track_number' in information:
file['TRCK'] = id3.TRCK(encoding=ENC_UTF8, text=str(information['track_number'])) file['TRCK'] = id3.TRCK(encoding=ENC_UTF8, text=str(information['track_number']))
if 'genre' in information:
file['TCON'] = id3.TCON(encoding=ENC_UTF8, text=information['genre'])
try: try:
lyr_url = genius.search(title, artist) lyr_url = genius.search(title, artist)