mirror of
				https://github.com/KevinMidboe/spotify-downloader.git
				synced 2025-10-29 18:00:15 +00:00 
			
		
		
		
	Merge pull request #297 from ritiek/remove-duplicates
Remove duplicates from track file
This commit is contained in:
		@@ -65,7 +65,9 @@ def check_exists(music_file, raw_song, meta_tags):
 | 
			
		||||
def download_list(text_file):
 | 
			
		||||
    """ Download all songs from the list. """
 | 
			
		||||
    with open(text_file, 'r') as listed:
 | 
			
		||||
        lines = (listed.read()).splitlines()
 | 
			
		||||
        # read tracks into a list and remove any duplicates
 | 
			
		||||
        lines = listed.read().splitlines()
 | 
			
		||||
        lines = list(set(lines))
 | 
			
		||||
    # ignore blank lines in text_file (if any)
 | 
			
		||||
    try:
 | 
			
		||||
        lines.remove('')
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user