cabernetwork / cabernet

Cabernet allows control of IPTV streams. Plugins supports DaddyLive, Pluto TV, XUMO, M3U/XMLTV.XML files (SamsungTV, STIRR, DistroTV, Plex TV)
https://cabernetwork.github.io
MIT License
176 stars 23 forks source link

Custom User-Agent #56

Closed itprotj closed 1 year ago

itprotj commented 1 year ago

I am experimenting with grabbing some channels from various providers and some rely on having a browser user agent to work. Is there an option I am missing or some sort of configuration parameter I can adjust to customise the user agent string that Cabernet sends when grabbing the stream?

Thanks

rocky4546 commented 1 year ago

Currently the User-Agent sends the Firefox Browser text. It is not available to adjust in the settings, but if you want to try other browsers, you can set it by editing the utils.py at cabernet/lib/common/ to see if other strings will work. I just updated it in RC2 to Firefox version 111.0