mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-11 05:33:37 +00:00
Fixed IndexError: list index out of range issue
This commit is contained in:
parent
c4105db242
commit
1136e5c833
1 changed files with 145 additions and 143 deletions
|
@ -61,9 +61,11 @@ class TvSubtitles(ServiceBase):
|
||||||
sid = int(match('tvshow-([0-9]+)\.html', elem.a['href']))
|
sid = int(match('tvshow-([0-9]+)\.html', elem.a['href']))
|
||||||
show_name = match('(.*) \(', elem.a.text)
|
show_name = match('(.*) \(', elem.a.text)
|
||||||
results.append((show_name, sid))
|
results.append((show_name, sid))
|
||||||
#TODO: pick up the best one in a smart way
|
|
||||||
result = results[0]
|
if len(results):
|
||||||
return result[1]
|
#TODO: pick up the best one in a smart way
|
||||||
|
result = results[0]
|
||||||
|
return result[1]
|
||||||
|
|
||||||
@cachedmethod
|
@cachedmethod
|
||||||
def get_episode_id(self, series_id, season, number):
|
def get_episode_id(self, series_id, season, number):
|
||||||
|
|
Loading…
Reference in a new issue