oscarr icon indicating copy to clipboard operation
oscarr copied to clipboard

sonarr+oscarr error loading

Open pkishino opened this issue 6 years ago • 3 comments

latest oscarr version in docker, sonarr: 2.0.0.5338 after adding sonarr config and clicking sonarr icon:

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/bottle.py", line 862, in _handle
    return route.call(**args)
  File "/usr/lib/python2.7/site-packages/bottle.py", line 1740, in wrapper
    rv = callback(*a, **ka)
  File "/oscarr/oscarr.py", line 255, in sonarr
    if 'statistics' in item['seasons'][-1]:
IndexError: list index out of range

in docker log. browser shows 500 ISE

pkishino avatar Oct 26 '19 17:10 pkishino

so, this happens for sonarr entries with no seasons added..added workaround, update oscarr.py lines 255 and 271 and add item['seasons'] and into the if statement

pkishino avatar Oct 28 '19 01:10 pkishino

will add PR later

pkishino avatar Oct 28 '19 01:10 pkishino

Thanks!

morpheus65535 avatar Oct 28 '19 10:10 morpheus65535