diff options
| author | Astounds <kirito@disroot.org> | 2026-04-05 14:56:51 -0500 |
|---|---|---|
| committer | Astounds <kirito@disroot.org> | 2026-04-05 14:56:51 -0500 |
| commit | f0649be5dec84ce06a3164a2d9ee90f5385ac92f (patch) | |
| tree | 6dcae30ff3e0d66c895033aab9e92a4c9e4ed513 /server.py | |
| parent | 62a028968e6d9b4e821b6014d6658b8317328fcf (diff) | |
| download | yt-local-f0649be5dec84ce06a3164a2d9ee90f5385ac92f.tar.lz yt-local-f0649be5dec84ce06a3164a2d9ee90f5385ac92f.tar.xz yt-local-f0649be5dec84ce06a3164a2d9ee90f5385ac92f.zip | |
Add HLS support to multi-audio
Diffstat (limited to 'server.py')
| -rw-r--r-- | server.py | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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: |
