From 80a7d2bde5af7d9185483f930078eec6eff42d39 Mon Sep 17 00:00:00 2001 From: DarkCat09 Date: Sun, 28 Apr 2024 14:02:07 +0400 Subject: [PATCH] id3pp: add genre (TCON) --- backend/id3pp.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/id3pp.py b/backend/id3pp.py index f6c1d97..960d90d 100644 --- a/backend/id3pp.py +++ b/backend/id3pp.py @@ -57,6 +57,8 @@ class ID3TagsPP(PostProcessor): file['TDRC'] = id3.TDRC(encoding=ENC_UTF8, text=str(information['release_year'])) if 'track_number' in information: 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: lyr_url = genius.search(title, artist)