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

Problem with http-user-agent ? #164

Closed
jab3 opened this issue Dec 8, 2017 · 8 comments
Closed

Problem with http-user-agent ? #164

jab3 opened this issue Dec 8, 2017 · 8 comments
Labels

Comments

@jab3
Copy link

jab3 commented Dec 8, 2017

I have a list of channels that in VLC works perfectly but in IPTV it does not work.

I think the problem is in: #EXTVLCOPT: http-user-agent = VLPLAYER / 8.5 LIBVLC / 3.0.0 LibVLC / 3.0.0-git

Could there be a solution?

List Here

Thanks

Cigaras added a commit that referenced this issue Dec 18, 2017
* Additional User-Agent implementation (#156)
* #EXTVLCOPT:http-user-agent m3u tag support (#164)
@Cigaras
Copy link
Owner

Cigaras commented Dec 18, 2017

Just committed a new version that takes into account #EXTVLCOPT:http-user-agent directives. To get this version click Clone or download -> Download ZIP on the front page of this repository.

However I do not have a way to test it properly, that's why I did not make a release version of it jet, please test it and report Your findings.

@ftilmont
Copy link

Hi guys,

I think to have same problem, or it seems to be about user-agent...

capture

In my log file, I see:

2017-12-22 16:36:01,243 (17f4) :  DEBUG (runtime:717) - Handling request GET /video/iptv/playvideo.m3u8?url=http%3A%2F%2Fcode.xtream-iptv.pro%3A8000%2Flive%2Fmy_username%2Fmy_password%2F669.ts&user_agent=__NONE__&indirect=1&mediaInfo=%7B%22audio_channels%22%3A%20null%2C%20%22protocol%22%3A%20%22hls%22%2C%20%22optimized_for_streaming%22%3A%20false%2C%20%22video_frame_rate%22%3A%20null%2C%20%22duration%22%3A%20null%2C%20%22height%22%3A%20null%2C%20%22width%22%3A%20null%2C%20%22container%22%3A%20%22mpegts%22%2C%20%22audio_codec%22%3A%20%22aac%22%2C%20%22aspect_ratio%22%3A%20null%2C%20%22video_codec%22%3A%20%22h264%22%2C%20%22video_resolution%22%3A%20null%2C%20%22bitrate%22%3A%20null%7D
2017-12-22 16:36:01,246 (17f4) :  DEBUG (runtime:814) - Found route matching /video/iptv/playvideo.m3u8
2017-12-22 16:36:01,247 (17f4) :  CRITICAL (core:574) - Exception (most recent call last):
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-f54242b6b\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components\runtime.py", line 843, in handle_request
    result = f(**d)
TypeError: PlayVideo() got an unexpected keyword argument 'user_agent'

2017-12-22 16:36:01,250 (17f4) :  DEBUG (runtime:88) - Sending packed state data (105 bytes)
2017-12-22 16:36:01,252 (17f4) :  DEBUG (runtime:924) - Response: [500] 505 bytes

I'm don't understand the "result = f(**d)" code and the ErrorType "PlayVideo() got an unexpected keyword argument 'user_agent'"

My M3U work fine with VLC, and It don't seems contaign "user-agent" parameter:

#EXTM3U
#EXTINF:-1 tvg-ID="beINSport1.fr" tvg-name="BeIN Sports 1 HD" tvg-logo="http://logo.xtream-iptv.pro/Bein-sports-1.jpg" group-title="Chaines_Françaises",BeIN Sports 1 HD
http://code.xtream-iptv.pro:8000/live/my_username/my_password/43.ts
#EXTINF:-1 tvg-ID="beINSport2.fr" tvg-name="BeIN SPORTS 2 HD" tvg-logo="http://logo.xtream-iptv.pro/Bein-sports-2.jpg" group-title="Chaines_Françaises",BeIN SPORTS 2 HD
http://code.xtream-iptv.pro:8000/live/my_username/my_password/44.ts
#EXTINF:-1 tvg-ID="beINSport3.fr" tvg-name="beIN SPORTS 3 HD" tvg-logo="http://logo.xtream-iptv.pro/Bein-sports-3.jpg" group-title="Chaines_Françaises",beIN SPORTS 3 HD
http://code.xtream-iptv.pro:8000/live/my_username/my_password/45.ts
...
...

Any Idea ?

Thank for your help

@stokkes
Copy link

stokkes commented Dec 22, 2017

Same problem here..

See logs:

2017-12-22 11:27:09,457 (7f8546ffd700) :  DEBUG (runtime:88) - Sending packed state data (105 bytes)
2017-12-22 11:27:09,457 (7f8546ffd700) :  DEBUG (runtime:924) - Response: [500] 484 bytes
2017-12-22 11:27:10,660 (7f8546ffd700) :  DEBUG (runtime:717) - Handling request GET /video/iptv/createvideoclipobject?c_container=__NONE__&art=%2F%3A%2Fplugins%2Fcom.plexapp.plugins.iptv%2Fresources%2Fart-default.jpg%3Ft%3D1513958011&thumb=%2F%3A%2Fplugins%2Fcom.plexapp.plugins.iptv%2Fresources%2FcontentWithFallback%3Ffallback%3D%252F%253A%252Fplugins%252Fcom.plexapp.plugins.iptv%252Fresources%252Ficon-tv.png%253Ft%253D1513958011%26urls%3Dhttps%25253A%252F%252Fs16.postimg.org%252Fvd3c2h1r9%252FCBC_Toronto.png&title=CBC+Vancover&url=http%3A%2F%2Fiptv.example.com%2Flive%2Fmyuserid%2Fmypassword%2F2747.m3u8&c_protocol=__NONE__&include_container=1&summary=11%3A14+Lazoo%0A11%3A29+The+Moblees%0A11%3A45+Daniel+Tiger%27s+Neighborhood%0A12%3A14+Scout+%26+the+Gumboot+Kids%0A12%3A19+Will%27s+Jams%0A12%3A24+Chirp%0A12%3A39+Bookaboo%0A12%3A54+Super+Why%21%0A13%3A24+Daniel+Tiger%27s+Neighborhood&c_video_codec=__NONE__&c_user_agent=__NONE__&c_audio_codec=__NONE__&optimized_for_streaming=True&includeConcerts=1&includeExtras=1&includeOnDeck=1&includePopularLeaves=1&includeChapters=1&checkFiles=1
2017-12-22 11:27:10,661 (7f8546ffd700) :  DEBUG (runtime:814) - Found route matching /video/iptv/createvideoclipobject
2017-12-22 11:27:10,664 (7f8546ffd700) :  DEBUG (runtime:88) - Sending packed state data (105 bytes)
2017-12-22 11:27:10,664 (7f8546ffd700) :  DEBUG (runtime:924) - Response: [200] MediaContainer, 3029 bytes
2017-12-22 11:27:10,796 (7f8546ffd700) :  DEBUG (runtime:717) - Handling request GET /video/iptv/playvideo.m3u8?url=http%3A%2F%2Fiptv.example.com%2Flive%2Fmyuserid%2Fmypassword%2F2747.m3u8&user_agent=__NONE__&indirect=1&mediaInfo=%7B%22audio_channels%22%3A%20null%2C%20%22protocol%22%3A%20%22hls%22%2C%20%22optimized_for_streaming%22%3A%20%22True%22%2C%20%22video_frame_rate%22%3A%20null%2C%20%22duration%22%3A%20null%2C%20%22height%22%3A%20null%2C%20%22width%22%3A%20null%2C%20%22container%22%3A%20%22mpegts%22%2C%20%22audio_codec%22%3A%20%22aac%22%2C%20%22aspect_ratio%22%3A%20null%2C%20%22video_codec%22%3A%20%22h264%22%2C%20%22video_resolution%22%3A%20null%2C%20%22bitrate%22%3A%20null%7D
2017-12-22 11:27:10,797 (7f8546ffd700) :  DEBUG (runtime:814) - Found route matching /video/iptv/playvideo.m3u8
2017-12-22 11:27:10,798 (7f8546ffd700) :  CRITICAL (runtime:889) - Exception (most recent call last):
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-f54242b6b/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/runtime.py", line 843, in handle_request
    result = f(**d)
TypeError: PlayVideo() got an unexpected keyword argument 'user_agent'

2017-12-22 11:27:10,799 (7f8546ffd700) :  DEBUG (runtime:88) - Sending packed state data (105 bytes)
2017-12-22 11:27:10,800 (7f8546ffd700) :  DEBUG (runtime:924) - Response: [500] 484 bytes
2017-12-22 11:27:38,838 (7f8546ffd700) :  DEBUG (runtime:717) - Handling request GET /video/iptv/:/prefs
2017-12-22 11:27:38,840 (7f8546ffd700) :  DEBUG (runtime:814) - Found route matching /video/iptv/:/prefs
2017-12-22 11:27:38,847 (7f8546ffd700) :  DEBUG (runtime:88) - Sending packed state data (105 bytes)
2017-12-22 11:27:38,847 (7f8546ffd700) :  DEBUG (runtime:924) - Response: [200] MediaContainer, 3566 bytes

@Cigaras
Copy link
Owner

Cigaras commented Dec 23, 2017

Sorry, my fault, fixed that.

@ftilmont
Copy link

Don't be sorry !

A very great "thank you"!
It works !!!

@stokkes
Copy link

stokkes commented Dec 23, 2017

Thanks !

@jab3
Copy link
Author

jab3 commented Dec 24, 2017

Dont work for me :(

log.txt

@Cigaras
Copy link
Owner

Cigaras commented Dec 27, 2017

Sorry @jab3, I see only transcoder errors in Your log, that means plug-in has no issues but Plex is not able to play Your streams and there is nothing I can do 🙁 I am also unable to play Your stream in VLC either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants