schollz/playlistfromsong

Handle entering an artist without a song

Aperta

#5 aperta il 6 mar 2017

 (5 commenti) (0 reazioni) (0 assegnatari)Python (9 fork)github user discovery
bughacktoberfesthelp wanted

Metriche repository

Star
 (138 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Hello. I'm getting error "IndexError: list index out of range"

$ playlistfromsong -s 'Kalya Scintilla'

PLAYLIST: 

Desert Dwellers - Lotus Heart - (Kalya Scintilla Remix)
Kalya Scintilla - Kalya Scintilla
Kaya Project - Kaya Project
Androcell - Androcell
Kaminanda - Kaminanda
Ott - Ott
Shulman - Shulman
Bluetech - Bluetech
Shakatura - Shakatura
Hibernation - Hibernation
Desert Dwellers - Desert Dwellers
Master Minded - Master Minded
Kalya Scintilla -  similar
Kaya Project -  similar
Angel Tears - Angel Tears
Random Rab - Random Rab
Entheogenic - Entheogenic
Tripswitch - Tripswitch
Androcell -  similar
Kaminanda -  similar
Akasha - Akasha
Cell - Cell
Younger Brother - Younger Brother
Digital Mystery Tour - Digital Mystery Tour
Traceback (most recent call last):
  File "/usr/local/bin/playlistfromsong", line 9, in <module>
    load_entry_point('playlistfromsong==0.12', 'console_scripts', 'playlistfromsong')()
  File "/usr/local/lib/python2.7/dist-packages/playlistfromsong/__main__.py", line 213, in main
    youtubeLinks = useLastFM(song, num)
  File "/usr/local/lib/python2.7/dist-packages/playlistfromsong/__main__.py", line 140, in useLastFM
    for data in p.map(getYoutubeAndRelatedLastFMTracks, lastfmTracks):
  File "/usr/lib/python2.7/multiprocessing/pool.py", line 251, in map
    return self.map_async(func, iterable, chunksize).get()
  File "/usr/lib/python2.7/multiprocessing/pool.py", line 558, in get
    raise self._value
IndexError: list index out of range

$ python --version
Python 2.7.9

Best regards, Dmitry.

Guida contributor