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

IndexError: list index out of range #77

Open
computerdude100 opened this issue Jul 29, 2020 · 6 comments
Open

IndexError: list index out of range #77

computerdude100 opened this issue Jul 29, 2020 · 6 comments

Comments

@computerdude100
Copy link

computerdude100 commented Jul 29, 2020

No matter the request (tested on Spotify link and query, YouTube links are OK), this appears and fails every download:

computerdude100@P35-DS3R:~/smd$ python3 main.py -q "One - Metallica"
Traceback (most recent call last):
File "main.py", line 771, in
CLI.main(sys.argv[1:])
File "main.py", line 726, in main
state, data = md.downloadBySearchQuery(query=array[i+1], path=CLI.path)
File "main.py", line 143, in downloadBySearchQuery
self.__downloadMusicFromYoutube(fixed_name, info['uri'], info['duration_ms'])
File "main.py", line 34, in __downloadMusicFromYoutube
url=self.__youtube.getResult(),
File "/home/computerdude100/smd/youtube.py", line 68, in getResult
return self.__result[i]
IndexError: list index out of range

Using a link or URI instead (can be song album or playlist):

computerdude100@P35-DS3R:~/smd$ python3 main.py -ss "spotify:track:0P8qiUt6Of1XGHShZzvURU"
Traceback (most recent call last):
File "main.py", line 771, in
CLI.main(sys.argv[1:])
File "main.py", line 603, in main
state = md.downloadBySpotifyUri(array[i+1], CLI.path)
File "main.py", line 86, in downloadBySpotifyUri
if self.__downloadMusicFromYoutube(fixed_name, info['uri'], info['duration_ms']):
File "main.py", line 34, in __downloadMusicFromYoutube
url=self.__youtube.getResult(),
File "/home/computerdude100/smd/youtube.py", line 68, in getResult
return self.__result[i]
IndexError: list index out of range
`

@dotiful
Copy link

dotiful commented Aug 3, 2020

confirm this issue

@yunooooo
Copy link

Also can confirm

@mmohamedyaser
Copy link

confirm this issue

@fprocacc
Copy link

Same problem here. Has anyone fixed it?

@ali-oem
Copy link

ali-oem commented Oct 10, 2020

Same here, any workaround ?

@noahbroyles
Copy link

I get the same problem.

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

7 participants