Skip to content
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

Issue #19

Open
DonCappuccin0 opened this issue Dec 11, 2021 · 5 comments
Open

Issue #19

DonCappuccin0 opened this issue Dec 11, 2021 · 5 comments
Assignees

Comments

@DonCappuccin0
Copy link

i have this error

Looks like something went wrong :(
Traceback (most recent call last):
File "C:\Users\nizar\AppData\Local\Programs\Python\Python39\lib\site-packages\pymusicdl\musicDL.py", line 92, in main
spotify_downloader().interface()
File "C:\Users\nizar\AppData\Local\Programs\Python\Python39\lib\site-packages\pymusicdl\modules\spotify_downloader.py", line 198, in interface
tracks,alburls = self.get_playlist_tracks(sp, plID)
File "C:\Users\nizar\AppData\Local\Programs\Python\Python39\lib\site-packages\pymusicdl\modules\spotify_downloader.py", line 109, in get_playlist_tracks
if len(playlist['items'][i]['track']['album']['images']) == 0:
TypeError: 'NoneType' object is not subscriptable

The error has been logged to logger.log file in 'musicDL downloads' on Desktop for reference
Take a screenshort and raise an issue in github or send it to the devs

@insaiyancvk
Copy link
Owner

@DonCappuccin0 Can you send the Spotify playlist you were trying to download? I will try to reproduce the error and fix it

@DonCappuccin0
Copy link
Author

DonCappuccin0 commented Dec 16, 2021 via email

@insaiyancvk
Copy link
Owner

I'll look into it.

@insaiyancvk
Copy link
Owner

insaiyancvk commented Dec 18, 2021

Hey @DonCappuccin0, I've looked into the code and tried to pinpoint the problem, so I think I kinda figured it out. So there's this song 'Astronomy (8th Light)' in the playlist which is greyed out which means it's either not be available in some regions or got removed because of licensing changes. I solved the issue with the code. I'll release a patch update tomorrow.

image

image

@insaiyancvk
Copy link
Owner

@DonCappuccin0 I've updated the code. You can update it locally using: pip install pymusicdl -U

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants