schollz/playlistfromsong

Handle entering an artist without a song

Open

#5 opened on Mar 6, 2017

View on GitHub
 (5 comments) (0 reactions) (0 assignees)Python (9 forks)github user discovery
bughacktoberfesthelp wanted

Repository metrics

Stars
 (138 stars)
PR merge metrics
 (PR metrics pending)

Description

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.

Contributor guide