Traceback (most recent call last):


 "/usr/lib/python3/dist-packages/exabgp/application/control.py", line 245, in run

self.loop()


 "/usr/lib/python3/dist-packages/exabgp/application/control.py", line 218, in loop

ready = self.read_on(reading)


 "/usr/lib/python3/dist-packages/exabgp/application/control.py", line 104, in read_on

poller.register(io, select.POLLIN | select.POLLPRI | select.POLLHUP | select.POLLNVAL | select.POLLERR)
TypeError: argument must be an int, or have a fileno() method.

Traceback (most recent call last):


 "/usr/local/bin/svtplay-dl", line 4, in <module>

__import__('pkg_resources').run_script('svtplay-dl==2.0+1.g8297d66', 'svtplay-dl')


 "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 739, in run_script

self.require(requires)[0].run_script(script_name, ns)


 "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1494, in run_script

exec(code, namespace, namespace)


 "/usr/local/lib/python3.5/dist-packages/svtplay_dl-2.0+1.g8297d66-py3.5.egg/EGG-INFO/scripts/svtplay-dl", line 7, in <module>

svtplay_dl.main()


 "/usr/local/lib/python3.5/dist-packages/svtplay_dl-2.0+1.g8297d66-py3.5.egg/svtplay_dl/__init__.py", line 63, in main

get_media(urls[0], config, __version__)


 "/usr/local/lib/python3.5/dist-packages/svtplay_dl-2.0+1.g8297d66-py3.5.egg/svtplay_dl/utils/getmedia.py", line 54, in get_media

get_all_episodes(stream, url)


 "/usr/local/lib/python3.5/dist-packages/svtplay_dl-2.0+1.g8297d66-py3.5.egg/svtplay_dl/utils/getmedia.py", line 72, in get_all_episodes

episodes = stream.find_all_episodes(stream.config)


 "/usr/local/lib/python3.5/dist-packages/svtplay_dl-2.0+1.g8297d66-py3.5.egg/svtplay_dl/service/viaplay.py", line 210, in find_all_episodes

episodes = self._grab_episodes(config, seasons)


 "/usr/local/lib/python3.5/dist-packages/svtplay_dl-2.0+1.g8297d66-py3.5.egg/svtplay_dl/service/viaplay.py", line 230, in _grab_episodes

if "program" in janson["formatPage"]["format"]["videos"][str(i)]:
TypeError: 'NoneType' object is not subscriptable
