DLHD: Modify function to follow redirects and actually grab/parse live events. (#531)

This commit is contained in:
Michael Lynch
2025-07-08 20:34:46 -04:00
committed by GitHub
parent ab2eeb3ac2
commit 067aac0a91
+1
View File
@@ -76,6 +76,7 @@ class DLHDScheduleService:
async with httpx.AsyncClient(proxy=settings.requests_proxy_url) as client: async with httpx.AsyncClient(proxy=settings.requests_proxy_url) as client:
response = await client.get( response = await client.get(
self.schedule_url, self.schedule_url,
follow_redirects=True,
headers={"Referer": urljoin(self.schedule_url, "/")}, headers={"Referer": urljoin(self.schedule_url, "/")},
) )
if response.status_code == 200: if response.status_code == 200: