From e2c5160e7000d29fbb3a93c901745ad9c52e8548 Mon Sep 17 00:00:00 2001 From: girst Date: Tue, 9 Mar 2021 20:52:23 +0100 Subject: [PATCH] remove hls test route --- app/proxy/__init__.py | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/app/proxy/__init__.py b/app/proxy/__init__.py index 6c2ca42..02d69f0 100644 --- a/app/proxy/__init__.py +++ b/app/proxy/__init__.py @@ -85,32 +85,6 @@ def hls_manifest(path): def cors_origin(): return f"{request.environ.get('wsgi.url_scheme')}://{request.host}" -@frontend.route("/x-hls/") -@frontend.route("/x-hls/") -def xxx(vid="5qap5aO4i9A"): - from ..common.common import get_video_info - _, map, _, _, _ = get_video_info(vid, -1) - url = map['hlsManifestUrl'].replace("https://manifest.googlevideo.com", "") - return f""" - - - - - - -""" - if __name__ == '__main__': app().run(debug=True) -- 2.39.3