mirror of
https://github.com/KevinMidboe/spotify-downloader.git
synced 2025-10-29 18:00:15 +00:00
Merge pull request #369 from ritiek/remove-duplicates-preserve-order
Remove duplicates whilst preserving order
This commit is contained in:
@@ -68,7 +68,7 @@ def download_list(text_file):
|
||||
with open(text_file, 'r') as listed:
|
||||
# read tracks into a list and remove any duplicates
|
||||
lines = listed.read().splitlines()
|
||||
lines = list(set(lines))
|
||||
lines = internals.remove_duplicates(lines)
|
||||
# ignore blank lines in text_file (if any)
|
||||
try:
|
||||
lines.remove('')
|
||||
|
||||
Reference in New Issue
Block a user