-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
feature: --ignore-album #1934 can only accept one keyword for albums to ignore #2009
Comments
You should be able to pass multiple keywords like so: |
@bharat-nair thanks for writing. I thought I had checked the quote method before like you showed, I checked again just now to verify if it is still buggy. It is. One other thing I noticed is that it either tries to repeatedly download the same songs over and over again or it somehow gets stuck in some sort of loop because when I try downloading ignoring keywords it never fully downloads. Here is a line you can use to test: Replace $URL with either an artist URL or an album URL. If you use an artist URL (example: https://open.spotify.com/artist/3JaAGmSTpJK35DqWrDUzBz ), it does not ignore all the keywords. Thanks! |
So earlier if you had albums: |
@bharat-nair Cool beans. Thanks so much for the fix. I look forward to trying it out! |
This issue has been automatically marked stale because there hasn't been any activity for the last 30 days. |
System OS
Windows
Python Version
3.11 (CPython)
Install Source
pip / PyPi
Install version / commit hash
4.2.4
Expected Behavior vs Actual Behavior
Expected behavior:
When you use the flag --ignore-albums, you should be able to ignore albums with several different keywords.
For example, if you want to download all the albums of the band "Sweet" but want to exclude albums that are mixes, sessions, or rare, you could run
spotdl https://open.spotify.com/artist/3JaAGmSTpJK35DqWrDUzBz --ignore-albums "mixes" or "sessions" or "rare" --output '{artist}/({year}) {album}/{artist} - {album} - {track-number} - {title}'
And this should exclude downloading any album with any of the keywords.
Actual behavior:
When doing the command with multiple keywords, albums are not ignored as they should be.
I have also tried it like:
spotdl https://open.spotify.com/artist/3JaAGmSTpJK35DqWrDUzBz --ignore-albums "mixes, sessions, rare" --output '{artist}/({year}) {album}/{artist} - {album} - {track-number} - {title}'
Either way I run the command, it will still download albums that have any of the keywords in the title.
Steps to reproduce - Ensure to include actual links!
spotdl https://open.spotify.com/artist/3JaAGmSTpJK35DqWrDUzBz --ignore-albums "mixes" --output '{artist}/({year}) {album}/{artist} - {album} - {track-number} - {title}'
spotdl https://open.spotify.com/artist/3JaAGmSTpJK35DqWrDUzBz --ignore-albums "mixes" or "sessions" --output '{artist}/({year}) {album}/{artist} - {album} - {track-number} - {title}'
Traceback
Other details
It is possible that this works as intended and only one keyword is allowed. I would think however that you should be able to specify multiple keywords.
I have tried many different syntaxes, and none of them worked. Maybe this is working and I just don't know how to write the keywords. If this is the case, a simple update in documentation would likely suffice.
Thanks!
The text was updated successfully, but these errors were encountered: