nextcloud video url
This commit is contained in:
parent
d4d786041d
commit
c03ffa885f
@ -364,6 +364,7 @@ class MainHandler(tornado.web.RequestHandler):
|
|||||||
self.write("HTML template missing.")
|
self.write("HTML template missing.")
|
||||||
|
|
||||||
async def handle_stream(self, handler, redir):
|
async def handle_stream(self, handler, redir):
|
||||||
|
if handler.provider != "nextcloud":
|
||||||
meta = await handler.meta()
|
meta = await handler.meta()
|
||||||
image = meta.get("og:image")
|
image = meta.get("og:image")
|
||||||
if isinstance(image, str):
|
if isinstance(image, str):
|
||||||
@ -375,8 +376,7 @@ class MainHandler(tornado.web.RequestHandler):
|
|||||||
|
|
||||||
upstream = None
|
upstream = None
|
||||||
if handler.provider == "nextcloud":
|
if handler.provider == "nextcloud":
|
||||||
upstream = urllib.parse.urljoin(handler.upstream, "download")
|
upstream = urllib.parse.urljoin(handler.upstream, "/download")
|
||||||
logger.info(upstream)
|
|
||||||
else:
|
else:
|
||||||
upstream = await stream_providers.get_any(handler.upstream, handler.proxy, logger)
|
upstream = await stream_providers.get_any(handler.upstream, handler.proxy, logger)
|
||||||
if upstream is None:
|
if upstream is None:
|
||||||
|
Loading…
Reference in New Issue
Block a user