test for stream
This commit is contained in:
parent
2b7e81add8
commit
46a8dd89ba
@ -15,7 +15,9 @@ class MainHandler(tornado.web.RequestHandler):
|
||||
endpoint = None
|
||||
src = providers[provider] + self.request.uri
|
||||
try:
|
||||
endpoint = streamlink.streams(src).get("best").url
|
||||
stream = streamlink.streams(src).get("best")
|
||||
if stream is not None:
|
||||
endpoint = stream.url
|
||||
except Exception as e:
|
||||
self.write(str(e))
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user