From 8e64d3f956242ba1164a70963eee361f04abdb0a Mon Sep 17 00:00:00 2001 From: UrloMythus Date: Thu, 4 Sep 2025 17:57:09 +0200 Subject: [PATCH] Fix f string --- Src/API/eurostreaming.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Src/API/eurostreaming.py b/Src/API/eurostreaming.py index b5dc3d0..9ae31aa 100644 --- a/Src/API/eurostreaming.py +++ b/Src/API/eurostreaming.py @@ -81,7 +81,8 @@ async def deltabit(page_url,client): page_url = response.url #Often deltabit redirects to another deltabit link. We need the redirected link to put it in the headers. - headers['origin'] = f'https://{page_url.split('/')[2]}' + origin = page_url.split('/')[2] + headers['origin'] = f'https://{origin}' headers['referer'] = page_url headers['user-agent'] = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36'