Add HLS support to multi-audio
This commit is contained in:
@@ -217,6 +217,12 @@ def site_dispatch(env, start_response):
|
||||
start_response('302 Found', [('Location', '/https://youtube.com')])
|
||||
return
|
||||
|
||||
# Handle local API endpoints directly (e.g., /ytl-api/...)
|
||||
if path.startswith('/ytl-api/'):
|
||||
env['SERVER_NAME'] = 'youtube.com'
|
||||
yield from yt_app(env, start_response)
|
||||
return
|
||||
|
||||
try:
|
||||
env['SERVER_NAME'], env['PATH_INFO'] = split_url(path[1:])
|
||||
except ValueError:
|
||||
|
||||
Reference in New Issue
Block a user