From 0ada591c0a19f44adebd19f1bcc10fb19bcfcbe3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=88=9A=28noham=29=C2=B2?= <100566912+NohamR@users.noreply.github.com> Date: Thu, 20 Nov 2025 20:42:25 +0100 Subject: [PATCH] Refactor manifest URL to use format_id variable --- utils/stream.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/stream.py b/utils/stream.py index d00a52b..35ac8f1 100644 --- a/utils/stream.py +++ b/utils/stream.py @@ -354,9 +354,10 @@ def get_manifest(manifest_id): 'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36', } + format_id = 1 url = ( f'https://api-proxad.dc2.oqee.net/playlist/v1/live/' - f'{manifest_id}/1/live.mpd' + f'{manifest_id}/{format_id}/live.mpd' ) response = requests.get(url, headers=headers, timeout=10) return response.text