Fixed artist names getting cutoff in metadata

This commit is contained in:
logykk 2021-10-24 12:31:44 +13:00
parent 630752cfa6
commit 192e325d09
3 changed files with 4 additions and 4 deletions

View File

@ -72,7 +72,7 @@ PLAYLIST_READ_PRIVATE = 'playlist-read-private'
WINDOWS_SYSTEM = 'Windows'
CREDENTIALS_JSON = '../credentials.json'
CREDENTIALS_JSON = 'credentials.json'
CONFIG_FILE_PATH = '../zs_config.json'

View File

@ -59,8 +59,8 @@ def download_track(track_id: str, extra_paths='', prefix=False, prefix_value='',
song_name = artists[0] + ' - ' + name
if prefix:
song_name = f'{prefix_value.zfill(2)}-{song_name}' if prefix_value.isdigit(
) else f'{prefix_value}-{song_name}'
song_name = f'{prefix_value.zfill(2)} - {song_name}' if prefix_value.isdigit(
) else f'{prefix_value} - {song_name}'
if ZSpotify.get_config(SPLIT_ALBUM_DISCS):
filename = os.path.join(ZSpotify.get_config(ROOT_PATH), extra_paths, 'Disc ' + str(

View File

@ -81,7 +81,7 @@ def set_audio_tags(filename, artists, name, album_name, release_year, disc_numbe
def conv_artist_format(artists) -> str:
""" Returns converted artist format """
return ', '.join(artists)[:-2]
return ', '.join(artists)
def set_music_thumbnail(filename, image_url) -> None: