Isayso / PlaylistEditorTV

IPTV m3u list Editor/Player for Windows with Kodi support
MIT License
284 stars 75 forks source link

EXTVCLOPT #65

Closed BPanther closed 2 years ago

BPanther commented 2 years ago

Please support the #EXTVLCOPT option for user-agent.

Isayso commented 2 years ago

Can you give me an example file?

BPanther commented 2 years ago

Here 2 examples:

EXTM3U tvg-url="https://kodi-unlimited-support.de/tv/epg.gz"

EXTINF:-1 tvg-id="DasErste.de" tvg-name="ARD" group-title="IPTV-Germany",ARD

EXTVLCOPT:http-user-agent=MYUSERAGENT/1.1

http://...

EXTINF:-1 tvg-id="ARTEDeutsch.de" tvg-name="ARTE HD" group-title="IPTV-Germany",ARTE HD

EXTVLCOPT:http-user-agent=MYUSERAGENT/1.1

http://...

Isayso commented 2 years ago

Is this line always the same in the whole file? What should I do with it?

BPanther commented 2 years ago

No, if exist, #EXTVLCOPT can have different values, e.g.

EXTVLCOPT:http-user-agent=MYUSERAGENT/1.0

EXTVLCOPT:http-user-agent=ANOTHERUSERAGENT/1.1

EXTVLCOPT:video-filter=invert:croppadd{croptop=50,cropbottom=50}

So i think you can use a new field how tvg-id, but if value empty, then the line for #EXTVLCOPT not included for the selected entry.

TangoCash commented 2 years ago

The options are the same as the VLC command line (and preferences) options. Instead of use: vlc.exe "D:\videos\v1.avi" --video-filter=invert:croppadd{croptop=50,cropbottom=50}

EXTM3U

EXTINF:9,v1.avi

EXTVLCOPT:video-filter=invert:croppadd{croptop=50,cropbottom=50}

d:\videos\v1.avi

May take a look at: https://code.videolan.org/videolan/vlc/-/blob/master/modules/demux/playlist/m3u.c#L299 https://code.videolan.org/videolan/vlc/-/blob/master/modules/misc/playlist/m3u.c#L97

Isayso commented 2 years ago

A quick shot. Please try it. If you find bugs, send me the corresponding dataset and error description. Not as vlc option, yet.

PlaylistEditorIPTV_v1.7.2DEBUG.zip

BPanther commented 2 years ago

Looks great, thank you very much. But now the cursor keys are not working.

Isayso commented 2 years ago

That's ..... no idea why. Will look into it

Isayso commented 2 years ago

Next try ;)

BPanther commented 2 years ago

Wow, great work. Thank you very much. :)

Isayso commented 2 years ago

bugfix, not tested for all types of files so far. The option is added at the end of all vlc options. Not sure if this is right. The line will be deleted if the column is hidden

PlaylistEditorIPTV_v1.7.2DEBUG.zip

BPanther commented 2 years ago

Edit/change of the m3u is now OK, but play with VLC does not working.

Isayso commented 2 years ago

I guess I need a working file or vlc option string to test it.

BPanther commented 2 years ago

Here a entry from https://github.com/iptv-org/iptv/blob/master/streams/us.m3u

EXTINF:-1 tvg-id="WGNDT1.us" status="online" user-agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36 OPR/65.0.3467.48",WGN Chicago IL (WGN-TV1) (720p)

EXTVLCOPT:http-referrer=https://plus.teleup.com/

EXTVLCOPT:http-user-agent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36 OPR/65.0.3467.48

https://cdn1-8p.teleuptv.net/3773db6d-881b-4096-b9cc-b4fe99ab68ac/index.m3u8

As you can see, there can be more than one entry #EXTVLCOPT exist. The example needs both for working.

An other entry from https://github.com/iptv-org/iptv/blob/master/streams/uk.m3u

EXTINF:-1 tvg-id="BBCWorldNewsEurope.uk" status="online" user-agent="Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148",BBC World News (480p)

EXTVLCOPT:http-user-agent=Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148

http://ott-cdn.ucom.am/s24/index.m3u8

Or both a little bit shorter:

EXTINF:-1 tvg-id="WGNDT1.us",WGN Chicago IL (WGN-TV1) (720p)

EXTVLCOPT:http-referrer=https://plus.teleup.com/

EXTVLCOPT:http-user-agent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36 OPR/65.0.3467.48

https://cdn1-8p.teleuptv.net/3773db6d-881b-4096-b9cc-b4fe99ab68ac/index.m3u8

EXTINF:-1 tvg-id="BBCWorldNewsEurope.uk",BBC World News (480p)

EXTVLCOPT:http-user-agent=Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148

http://ott-cdn.ucom.am/s24/index.m3u8

BPanther commented 2 years ago

Wow, you're great - it works perfect. Thank you very much. :)

Isayso commented 2 years ago

Please test it for a while. I don't use this kind of links, will probably not find bugs.

Isayso commented 2 years ago

done in release v1.7.2