Added support for agent header. Added all italian sport channels from DL

This commit is contained in:
2025-03-02 19:12:35 -06:00
parent c5ca8d7274
commit 240c426c29
2 changed files with 150 additions and 3 deletions

View File

@@ -126,6 +126,8 @@ async def stream_channel(channel_id: str, auth: bool = Depends(verify_credential
headers['Origin'] = channel['origin']
if 'referer' in channel:
headers['Referer'] = channel['referer']
if 'agent' in channel:
headers['User-Agent'] = channel['agent']
# Get proxy if specified
proxy = channel.get('proxy')