mirror of
https://github.com/Viren070/MediaFusion.git
synced 2025-12-01 23:21:11 +01:00
DLHD: Modify function to follow redirects and actually grab/parse live events. (#531)
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user