xteve-project / xTeVe

M3U Proxy for Plex DVR and Emby Live TV
MIT License
1.8k stars 232 forks source link

Server does not utilize User Agent #304

Open teeohhem opened 2 years ago

teeohhem commented 2 years ago

Please first read the documentation. Problems affecting the client, e.g. Plex or Emby should be reported there in the forum.

Describe the bug The user-agent setting is not respected when downloading m3u lists.

Server (please complete the following information):

To Reproduce Steps to reproduce the behavior:

  1. Edit configuration and change user agent
  2. Analyze network traffic using tcpdump
  3. Notice the network request to fetch m3u files does not utilize the user agent

Expected behavior The user agent string should be respected

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

MCTyler commented 2 years ago

Only applicable when using the buffer.

AlexDias95 commented 2 years ago

@MCTyler I am having the same problem. Xteve uses indeed user-agent header when connecting to streams (after downloading m3u file) but when downloading m3u, it does not use a custom user-agent. Right now, I have downloaded a m3u list to local storage and used it but I would prefer to use m3u by URL to be always updated.

MCTyler commented 2 years ago

I'm not sure I understand that User-agent will be used when downloading m3u, just when streams are played VIA buffer.

AlexDias95 commented 2 years ago

Exactly, when downloading the m3u list, some providers need user-agent to download that same list. Running streams from that list works with the custum user-agent.

MCTyler commented 2 years ago

Personally, I would find a different Provider if they are that picky ;)