artyshko / smd

Spotify Music Downloader
MIT License
1.36k stars 238 forks source link

IndexError: list index out of range #77

Open computerdude100 opened 4 years ago

computerdude100 commented 4 years ago

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 commented 4 years ago

confirm this issue

yunooooo commented 4 years ago

Also can confirm

mmohamedyaser commented 4 years ago

confirm this issue

fprocacc commented 3 years ago

Same problem here. Has anyone fixed it?

ali-oem commented 3 years ago

Same here, any workaround ?

noahbroyles commented 3 years ago

I get the same problem.