Hello to all!
Today sops the strem for us. Can someone help us to find where is a problem
Posted 4 December 2015 - 23:00
Pretty clear, both URL's return an HTTP 403: Forbidden. So you don't have access to that URL, usually that means authentication is needed.
Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)
Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.
Many answers to your question can be found in our new and improved wiki.
Posted 4 December 2015 - 23:21
I think that it is due of this commit: https://github.com/O...c64d537c17bfb48
He cut the link after '&' thinking that it is a header.
Posted 5 December 2015 - 07:55
I think that it is due of this commit: https://github.com/O...c64d537c17bfb48
He cut the link after '&' thinking that it is a header.
Extra headers are parsed only after '#' delimiter. In link there is no delimiter, so nothing is cut.
Can we write our useragent they follow him i think that is a problem. On vlc and kodi works but with specific useragent. Thanks for replay
Sure, you can add it in bouquet like this:
#SERVICE 4097:0:0:0:0:0:0:0:0:0:http%3a//151.252.32.234:8080/stream/?channel=rts1&stream=1mb&sp=nettvplus?u=USER#User-Agent=CustomUserAgent:ChannelName
Posted 5 December 2015 - 12:13
That is Problem doesnt works good like with 1:0:1 bild is not stable
#SERVICE 4097:0:1:0:0:0:0:0:0:0:http%3a//151.252.32.234%3a8080/stream/?channel=nettvinfo&stream=1mb&sp=nettvplus?u=USER#User-Agent=Linux-Android 5.0.1#User-Agent=Linux-Android 5.0.1:NetTV Plus Info Kanal
This stream works witout valid user you can try it
Edited by Siki78, 5 December 2015 - 12:16.
Posted 5 December 2015 - 13:32
Could you add the UserAgent for 1:0:1 streams for the next update, so we do not have to use 4097:0?
Sure, I will create patch for it
That is Problem doesnt works good like with 1:0:1 bild is not stable
#SERVICE 4097:0:1:0:0:0:0:0:0:0:http%3a//151.252.32.234%3a8080/stream/?channel=nettvinfo&stream=1mb&sp=nettvplus?u=USER#User-Agent=Linux-Android 5.0.1#User-Agent=Linux-Android 5.0.1:NetTV Plus Info Kanal
This stream works witout valid user you can try it
So it's working for you with 4097, when you provide custom User-Agent? I thought that we were talking about 4097(gstreamer) and not 1(TS source) from the beginning.
For 1(TS source) there is currently hardcoded User-Agent to "Enigma2".
Likely that patch needs to do more than only checking/splitting the url on a &.... But add a bit more to it...
We are not checking/splitting url on '&', we use this delimiter only for extra headers. We split url and extra headers by '#'
Posted 5 December 2015 - 16:18
https://github.com/O...nigma2/pull/115
With above patches, is your stream working.
Everything looks to be ok now, here are some tests:
#SERVICE 1:0:0:0:0:0:0:0:0:0:http%3a//127.0.0.1%3a7777/path:test_dvb_without_headers ERROR:root:Host: 127.0.0.1 User-Agent: Enigma2 Accept: */* Connection: close localhost.localdomain - - [05/Dec/2015 16:11:52] code 404, message File not found localhost.localdomain - - [05/Dec/2015 16:11:52] "GET /path HTTP/1.1" 404 -
#SERVICE 1:0:0:0:0:0:0:0:0:0:http%3a//127.0.0.1%3a7777/path#CustomHeader1=Header1&User-Agent=CustomUserAgent&CustomHeader2=Header2:test_dvb_headers_with_path ERROR:root:Host: 127.0.0.1 User-Agent: CustomUserAgent CustomHeader1: Header1 CustomHeader2: Header2 Accept: */* Connection: close localhost.localdomain - - [05/Dec/2015 16:13:31] code 404, message File not found localhost.localdomain - - [05/Dec/2015 16:13:31] "GET /path HTTP/1.1" 404 -
#SERVICE 1:0:0:0:0:0:0:0:0:0:http%3a//127.0.0.1%3a7777#CustomHeader1=Header1&User-Agent=CustomUserAgent&CustomHeader2=Header2:test_dvb_headers_without_path ERROR:root:Host: 127.0.0.1 User-Agent: CustomUserAgent CustomHeader1: Header1 CustomHeader2: Header2 Accept: */* Connection: close localhost.localdomain - - [05/Dec/2015 16:14:13] "GET / HTTP/1.1" 200 -
#SERVICE 1:0:0:0:0:0:0:0:0:0:http%3a//127.0.0.1%3a7777#CustomHeader1=Header1&CustomHeader2=Header2:test_dvb_headers_without_path_without_useragent ERROR:root:Host: 127.0.0.1 User-Agent: Enigma2 CustomHeader1: Header1 CustomHeader2: Header2 Accept: */* Connection: close localhost.localdomain - - [05/Dec/2015 16:14:52] "GET / HTTP/1.1" 200 -
#SERVICE 1:0:0:0:0:0:0:0:0:0:http%3a//127.0.0.1%3a7777/path#CustomHeader1=Header1&CustomHeader2=Header2:test_dvb_headers_with_path_without_useragent ERROR:root:Host: 127.0.0.1 User-Agent: Enigma2 CustomHeader1: Header1 CustomHeader2: Header2 Accept: */* Connection: close localhost.localdomain - - [05/Dec/2015 16:16:07] code 404, message File not found localhost.localdomain - - [05/Dec/2015 16:16:07] "GET /path HTTP/1.1" 404 -
testserver:
import SimpleHTTPServer import SocketServer import logging PORT = 7777 class ServerHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): def do_GET(self): logging.error(self.headers) # whatever else you would like to log here SimpleHTTPServer.SimpleHTTPRequestHandler.do_GET(self) Handler = ServerHandler httpd = SocketServer.TCPServer(("", PORT), Handler) print "serving at port", PORT httpd.serve_forever()
Posted 5 December 2015 - 19:39
@mdshd
You have to wait until it's reviewed and pushed by OpenPli team, then download new image/use update.
@Taapat
just use service reference path:
url = getVideoLink() url = url + "#User-Agent=CustomUserAgent&CustomHeader=Header" sref = eServiceReference(4097, 0, url) session.nav.playService(sref)
Posted 5 December 2015 - 19:49
Yes, but I mentioned a 3rd-party plugins, because it is possible that we can not change their source code.
Perhaps, we need to return the possibility set the User-Agent in the config?
In any case, I write only in theory, and I do not know any plugin where they should be needed.
Posted 5 December 2015 - 19:59
So for backwards compatibility with non-open source or abandoned plugins, you want to add old way of setting User-Agent header via config?
I guess we could do that, so both options are available, but I think rather plugin's authors should update their plugins, since it's clearly more flexible now and we don't need to set globally User-Agent for every service via config.
Posted 5 December 2015 - 21:47
@Taapat
From second reading of my post, it sounds to me kind of rude, so my apology If it sound that way for you too, It was not my intention at all. I would like to hear also opinion about this from PliTeam.
@mdshd
I can see that my pull request was pushed , so I guess tomorrow it will be available for a test.
0 members, 6 guests, 0 anonymous users