mirror of
				https://github.com/KevinMidboe/spotify-downloader.git
				synced 2025-10-29 18:00:15 +00:00 
			
		
		
		
	Add a config option to preserve spaces in file names (#201)
* Add a config option to preserve spaces in file names * Typo * Fix replacing in path
This commit is contained in:
		
				
					committed by
					
						 Ritiek Malhotra
						Ritiek Malhotra
					
				
			
			
				
	
			
			
			
						parent
						
							e283231f8e
						
					
				
				
					commit
					1fe94c9896
				
			| @@ -186,6 +186,10 @@ def grab_single(raw_song, number=None): | ||||
|             if not const.args.no_metadata and meta_tags is not None: | ||||
|                 metadata.embed(os.path.join(const.args.folder, output_song), meta_tags) | ||||
|  | ||||
|             if const.args.preserve_spaces and "_" in output_song: | ||||
|                 song_path = os.path.join(const.args.folder, output_song.replace('_', ' ')) | ||||
|                 os.rename(os.path.join(const.args.folder, output_song), song_path) | ||||
|  | ||||
|         else: | ||||
|             log.error('No audio streams available') | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user