-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Overwrite track file with unique tracks #380
Conversation
This PR also adds a new function |
290515c
to
a5a2791
Compare
spotdl/internals.py
Outdated
with open(text_file, 'r') as listed: | ||
# read tracks into a list and remove any duplicates | ||
lines = listed.read().splitlines() | ||
lines = list(set(lines)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should use the new remove_duplicates
function here IMO...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, this seems to be causing a merge conflict.
Tests are always good! 😁 |
d225c1d
to
7b572ba
Compare
7b572ba
to
e076d11
Compare
I also rebased this branch against master and should be ready to merge. |
Awesome! |
Closes #370.