mirror of
https://github.com/THIS-IS-NOT-A-BACKUP/zspotify.git
synced 2024-11-30 03:34:34 +01:00
add album artist:
This commit is contained in:
parent
87b564d609
commit
edbc5c78d9
@ -18,6 +18,8 @@ ARTIST = 'artist'
|
|||||||
|
|
||||||
ARTISTS = 'artists'
|
ARTISTS = 'artists'
|
||||||
|
|
||||||
|
ALBUMARTIST = 'albumartist'
|
||||||
|
|
||||||
ARTWORK = 'artwork'
|
ARTWORK = 'artwork'
|
||||||
|
|
||||||
TRACKS = 'tracks'
|
TRACKS = 'tracks'
|
||||||
|
@ -10,7 +10,7 @@ import music_tag
|
|||||||
import requests
|
import requests
|
||||||
|
|
||||||
from const import ARTIST, TRACKTITLE, ALBUM, YEAR, DISCNUMBER, TRACKNUMBER, ARTWORK, \
|
from const import ARTIST, TRACKTITLE, ALBUM, YEAR, DISCNUMBER, TRACKNUMBER, ARTWORK, \
|
||||||
WINDOWS_SYSTEM
|
WINDOWS_SYSTEM, ALBUMARTIST
|
||||||
|
|
||||||
|
|
||||||
class MusicFormat(str, Enum):
|
class MusicFormat(str, Enum):
|
||||||
@ -102,6 +102,7 @@ def clear() -> None:
|
|||||||
def set_audio_tags(filename, artists, name, album_name, release_year, disc_number, track_number) -> None:
|
def set_audio_tags(filename, artists, name, album_name, release_year, disc_number, track_number) -> None:
|
||||||
""" sets music_tag metadata """
|
""" sets music_tag metadata """
|
||||||
tags = music_tag.load_file(filename)
|
tags = music_tag.load_file(filename)
|
||||||
|
tags[ALBUMARTIST] = artists[0]
|
||||||
tags[ARTIST] = conv_artist_format(artists)
|
tags[ARTIST] = conv_artist_format(artists)
|
||||||
tags[TRACKTITLE] = name
|
tags[TRACKTITLE] = name
|
||||||
tags[ALBUM] = album_name
|
tags[ALBUM] = album_name
|
||||||
|
Loading…
Reference in New Issue
Block a user