id3pp: add genre (TCON)
This commit is contained in:
parent
7669127826
commit
80a7d2bde5
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue