4gray / iptvnator

:tv: Cross-platform IPTV player application with multiple features, such as support of m3u and m3u8 playlists, favorites, TV guide, TV archive/catchup and more.
https://iptvnator.vercel.app
MIT License
2.84k stars 385 forks source link

feat: support for setting channel HTTP referrer headers for HTML 5 Player & JS Player #332

Closed sapireli closed 11 months ago

sapireli commented 12 months ago

This commit introduces support for setting the HTTP referrer headers per channel. The referrer is the http-referrer as defined for each channel in the m3u8 playlist using the VLC format (#EXTVLCOPT:http-referrer=http://example.com/) This feature works for both the HTML5 player and the js player.

Updates were made to the html-video-player component for the HTML5 player, and to the logic in the CHANNEL_SET_USER_AGENT function in the main electron api.ts.

vercel[bot] commented 12 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
iptvnator ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 2, 2023 10:03am
ghost commented 12 months ago
👇 Click on the image for a new way to code review #### [![Review these changes using an interactive CodeSee Map](https://s3.us-east-2.amazonaws.com/maps.codesee.io/images/github/4gray/iptvnator/332/1b566986/5e90083f35e36623c9e03860e16b651f15ea7717.svg)](https://app.codesee.io/r/reviews?pr=332&src=https%3A%2F%2Fgithub.com%2F4gray%2Fiptvnator) #### Legend CodeSee Map legend
sapireli commented 11 months ago

@4gray if you could please accept... many thanks

4gray commented 11 months ago

Thank you for the contribution!