mirror of
				https://github.com/THIS-IS-NOT-A-BACKUP/zspotify.git
				synced 2025-11-03 21:10:34 +00:00 
			
		
		
		
	Fixed artist names getting cutoff in metadata
This commit is contained in:
		
							parent
							
								
									630752cfa6
								
							
						
					
					
						commit
						192e325d09
					
				@ -72,7 +72,7 @@ PLAYLIST_READ_PRIVATE = 'playlist-read-private'
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
WINDOWS_SYSTEM = 'Windows'
 | 
					WINDOWS_SYSTEM = 'Windows'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
CREDENTIALS_JSON = '../credentials.json'
 | 
					CREDENTIALS_JSON = 'credentials.json'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
CONFIG_FILE_PATH = '../zs_config.json'
 | 
					CONFIG_FILE_PATH = '../zs_config.json'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -59,8 +59,8 @@ def download_track(track_id: str, extra_paths='', prefix=False, prefix_value='',
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        song_name = artists[0] + ' - ' + name
 | 
					        song_name = artists[0] + ' - ' + name
 | 
				
			||||||
        if prefix:
 | 
					        if prefix:
 | 
				
			||||||
            song_name = f'{prefix_value.zfill(2)}-{song_name}' if prefix_value.isdigit(
 | 
					            song_name = f'{prefix_value.zfill(2)} - {song_name}' if prefix_value.isdigit(
 | 
				
			||||||
            ) else f'{prefix_value}-{song_name}'
 | 
					            ) else f'{prefix_value} - {song_name}'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if ZSpotify.get_config(SPLIT_ALBUM_DISCS):
 | 
					        if ZSpotify.get_config(SPLIT_ALBUM_DISCS):
 | 
				
			||||||
            filename = os.path.join(ZSpotify.get_config(ROOT_PATH), extra_paths, 'Disc ' + str(
 | 
					            filename = os.path.join(ZSpotify.get_config(ROOT_PATH), extra_paths, 'Disc ' + str(
 | 
				
			||||||
 | 
				
			|||||||
@ -81,7 +81,7 @@ def set_audio_tags(filename, artists, name, album_name, release_year, disc_numbe
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
def conv_artist_format(artists) -> str:
 | 
					def conv_artist_format(artists) -> str:
 | 
				
			||||||
    """ Returns converted artist format """
 | 
					    """ Returns converted artist format """
 | 
				
			||||||
    return ', '.join(artists)[:-2]
 | 
					    return ', '.join(artists)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def set_music_thumbnail(filename, image_url) -> None:
 | 
					def set_music_thumbnail(filename, image_url) -> None:
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user