diff --git a/stream.py b/stream.py index c41e231..7d455f4 100755 --- a/stream.py +++ b/stream.py @@ -2,7 +2,6 @@ import streamlink import tornado.web import tornado.routing -import urllib.parse providers = {} providers["nrk"] = "https://tv.nrk.no" @@ -12,7 +11,7 @@ providers["youtube"] = "https://youtu.be" class MainHandler(tornado.web.RequestHandler): def get(self): provider = self.get_query_argument("provider", None) - if provider in providers: + if provider is not None and provider in providers: endpoint = None src = providers[provider] + self.request.uri try: