Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request to support standard User-agent and Referer like in Kodi #57

Closed
mikhoul opened this issue Jun 1, 2021 · 5 comments
Closed

Request to support standard User-agent and Referer like in Kodi #57

mikhoul opened this issue Jun 1, 2021 · 5 comments
Labels
enhancement 馃獎 New feature or request
Milestone

Comments

@mikhoul
Copy link

mikhoul commented Jun 1, 2021

Hi, could you add url support with "User-Agent" and "Referer", as in Kodi ? 馃

Most modern IPTV players support the M3U8 Kodi syntax for UA and Referer:

Here's an example:

#EXTM3U
#EXTINF:0,Test
https://www.streamaway.net/fra/13e/mono.m3u8|User-Agent=Mozilla/5.0&Referer=https://www.streamaway.net/fr/13erue-fr.php
https://www.streamaway.net/fra/histo/index.m3u8|Referer=https://www.streamaway.net/fr/Histoire-fr.php

It would be really useful since in many list for different channels we need diff茅rents "Referer" and the option allow to specify only one different referer by playlist.

Regards ! :octocat:

@mikhoul mikhoul changed the title Request to support standard User-agent and Referer kie in Kodi Request to support standard User-agent and Referer like in Kodi Jun 1, 2021
@4gray 4gray added the enhancement 馃獎 New feature or request label Jun 1, 2021
@4gray
Copy link
Owner

4gray commented Jun 1, 2021

In several playlists I have also seen this kind of syntax:

#EXTM3U
#EXTINF:0,Test
#EXTVLCOPT:http-referrer=http://example.com/
#EXTVLCOPT:http-user-agent=custom-user-agent
http://stream-url-here

I think in the end it would be ideal to have support for both formats.

@mikhoul
Copy link
Author

mikhoul commented Jun 2, 2021

In several playlists I have also seen this kind of syntax:

Yes this is the second most used syntax, this syntax come from VLC.

The most popular is the Kodi standard it is used by many Android IPTV playrer like Tivimate.

I agree to have bot supported would be the best. 馃槃

Since the logic for referer is already implemented in iptvnator do you think it would be long to have it compatible to the kodi standard ? 馃

Regards :octocat:

@4gray
Copy link
Owner

4gray commented Jun 11, 2021

Since the logic for referer is already implemented in iptvnator do you think it would be long to have it compatible to the kodi standard ?

Yeah, I have started working on this, I think the feature will be available in the next release. The library used for parsing ipv-playlist-parser will need to be extended.

@4gray 4gray added this to the v0.8.0 milestone Jun 11, 2021
@mikhoul
Copy link
Author

mikhoul commented Jun 11, 2021

Thanks a lot @4gray , 馃憤

It will be really useful to play legal links from various sites that are expecting a specific user agent. :octocat:

@4gray 4gray closed this as completed in a55f741 Jun 27, 2021
@mikhoul
Copy link
Author

mikhoul commented Jul 9, 2021

@4gray I've seen that you have integrated the feature so I'd like to know when you intend to publish the next release with this feature integrated ?

Regards :octocat:

github-actions bot pushed a commit that referenced this issue Jul 17, 2021
# [0.8.0](v0.7.0...v0.8.0) (2021-07-17)

### Features

* add info popup with epg info for active channel ([0eecfd1](0eecfd1)), closes [#51](#51)
* add support of specific user-agent and referer on channel level ([a55f741](a55f741)), closes [#57](#57)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement 馃獎 New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants