morpheus65535 / oscarr

Oscarr is a dashboard application for users of Plex, Emby, Sonarr, Radarr and Bazarr. It gives you and overview of your media management software.
GNU General Public License v3.0
58 stars 12 forks source link

sonarr+oscarr error loading #8

Open pkishino opened 5 years ago

pkishino commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

will add PR later

morpheus65535 commented 5 years ago

Thanks!