mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-12 11:02:21 -05:00
Fixed IndexError: list index out of range issue
This commit is contained in:
parent
c4105db242
commit
1136e5c833
@ -61,6 +61,8 @@ class TvSubtitles(ServiceBase):
|
||||
sid = int(match('tvshow-([0-9]+)\.html', elem.a['href']))
|
||||
show_name = match('(.*) \(', elem.a.text)
|
||||
results.append((show_name, sid))
|
||||
|
||||
if len(results):
|
||||
#TODO: pick up the best one in a smart way
|
||||
result = results[0]
|
||||
return result[1]
|
||||
|
Loading…
Reference in New Issue
Block a user