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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add url playlist with User-Agent #465

Open
SingKS8 opened this issue Nov 18, 2024 · 7 comments
Open

Add url playlist with User-Agent #465

SingKS8 opened this issue Nov 18, 2024 · 7 comments
Labels
enhancement 🪄 New feature or request

Comments

@SingKS8
Copy link

SingKS8 commented Nov 18, 2024

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

"User-Agent" is only edited on the "playlist" editor page, but I can not add the playlist which require the "User-Agent" when it gets the error result when fetching the playlist.

Describe the solution you'd like
A clear and concise description of what you want to happen.

  1. If it is possible, adding a new field for the "User-Agent" when adding the playlist url;
  2. Still saving the playlist record, even though fetching playlist url error, then we could update the playlist and refrech.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

@4gray 4gray added the enhancement 🪄 New feature or request label Nov 20, 2024
@what-a
Copy link

what-a commented Nov 22, 2024

For each playlist, one needs the ability to define Referrer, Origin, and User-Agent. For example...
Referrer: https://ilovetoplay.xyz/
Origin: https://ilovetoplay.xyz
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36

This Github user provides some fantastic playlists which IPTVnator cannot accomidate at the playlist level (though they do work when R/O/U is set within the playlist):
https://github.com/dtankdempse

@what-a
Copy link

what-a commented Nov 23, 2024

Might need a check box for each playlist which allows users to toggle on/off the ability to define R/O/U (Referrer/Origin/UserAgent) at the playlist level.

  • If toggled on, IPTVnator allows user to input R/O/U for the playlist. IPTVnator then relies upon this user defined R/O/U for all channels within that playlist (ignoring any R/O/U for individual channels that might be defined within the playlist).
  • If toggled off, IPTVnator does not allow user to input R/O/U at the playlist level. Instead, IPTVnator defaults to any R/O/U defined for individual channels within the playlist.

@steinxborg
Copy link

For each playlist, one needs the ability to define Referer, Origin, and User-Agent. For example... Referer: https://ilovetoplay.xyz/ Origin: https://ilovetoplay.xyz User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36

This Github user provides some fantastic playlists which IPTVnator cannot accomidate due to the above issue: https://github.com/dtankdempse

I think this is already working with iptvnator.
Screenshot from 2024-11-23 17-09-43

@what-a
Copy link

what-a commented Nov 23, 2024

" I think this is already working with iptvnator."

@steinxborg Which Daddy Live formatted playlist did you get to work, and what OS (Windows, Linux, or MacOS) are you running?
Standard (https://bit.ly/ddy-m3u1)
TiviMate (https://bit.ly/ddy-m3u2)
Kodi (https://bit.ly/ddy-m3u3)
VLC (https://bit.ly/ddy-m3u3)

@what-a
Copy link

what-a commented Nov 23, 2024

After further testing using the R/O/U (Referrer/Origin/UserAgent) format within a playlist:

  • Works! Tested on IPTVnator running under Windows, Linux, and MacOS.

Example R/O/U format within a playlist:

#EXTINF:-1 group-title="USA (DADDY LIVE)" ,ABCNY
#EXTVLCOPT:http-referrer=https://cookiewebplay.xyz/
#EXTVLCOPT:http-origin=https://cookiewebplay.xyz
#EXTVLCOPT:http-user-agent=Mozilla/5.0 (iPhone; CPU iPhone OS 17_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.0 Mobile/15E148 Safari/604.1
https://xyzdddd.mizhls.ru/lb/premium766/index.m3u8

After further testing when setting User Agent at the playlist level (i.e. using the Playlist Details screen) in IPTVnator.

  • Does work when running IPTVnator v11.1 under Windows, Linux, and MacOS.
  • Does not work when running IPTVnator v12 (or greater) under Windows, Linux, nor MacOS.

Example:
image

@steinxborg
Copy link

steinxborg commented Nov 24, 2024

" I think this is already working with iptvnator."

@steinxborg Which Daddy Live formatted playlist did you get to work, and what OS (Windows, Linux, or MacOS) are you running? Standard (https://bit.ly/ddy-m3u1) TiviMate (https://bit.ly/ddy-m3u2) Kodi (https://bit.ly/ddy-m3u3) VLC (https://bit.ly/ddy-m3u3)

I am using vlc formatted playlist. I am using ubuntu. My iptvnator version is 0.16.0.

@what-a
Copy link

what-a commented Nov 24, 2024

@steinxborg Thank for the info. I too am able to play the VLC formatted lists on IPTVnator (on Windows, MacOS, and Linux).

@4gray R/O/U (Referrer/Origin/UserAgent) format within a playlist works fine when IPTVnator is using VideoJs Player and HTML5 Video Player. However, they are not working when IPTVnator is using mpv nor VLC. If I eliminate IPTVnator and play the playlist directly using mpv or VLC then the channels do work. So, I'm guessing that IPTVnator is not forwarding the R/O/U info from within a playlist to mpv nor to VLC.

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

4 participants