smd icon indicating copy to clipboard operation
smd copied to clipboard

IndexError: list index out of range

Open computerdude100 opened this issue 3 years ago • 6 comments

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 `

computerdude100 avatar Jul 29 '20 20:07 computerdude100

confirm this issue

dotiful avatar Aug 03 '20 08:08 dotiful

Also can confirm

yunooooo avatar Aug 27 '20 02:08 yunooooo

confirm this issue

mmohamedyaser avatar Oct 03 '20 07:10 mmohamedyaser

Same problem here. Has anyone fixed it?

fprocacc avatar Oct 10 '20 10:10 fprocacc

Same here, any workaround ?

ali-oem avatar Oct 10 '20 21:10 ali-oem

I get the same problem.

noahbroyles avatar Dec 24 '20 20:12 noahbroyles