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

URL format works on Windows but not on Android - Libcurl - Disable http2 #294

Open
pittas opened this issue Oct 22, 2019 · 14 comments
Open
Labels

Comments

@pittas
Copy link

pittas commented Oct 22, 2019

I am using the Nice Restreamer panel which generates the m3u url in the following formats:

[MPEGTS]
http://host.com:4300/mpg/user:pass:playlist.m3u

[SIPTV]
http://host.com:4300/siptv/user:pass:playlist.m3u

The unusual thing is that using Kodi on Windows it works fine, but when using the same m3u url on Kodi on Android it cannot load the channel list. Could this have something to do with the ':' character within the m3u?

https://nice-panel.com/faq.html#

@phunkyfish
Copy link
Member

phunkyfish commented Oct 22, 2019

Please supply a full debug log.

Without that I cannot help you as I don’t have android.

@phunkyfish
Copy link
Member

phunkyfish commented Oct 22, 2019

Note however that is not a standard way to pass a username and password via a URL.

Either: http://user:[email protected]/stream.m3u

Or:
http://user:[email protected]/stream.m3u?username=user&password=pass

Would be the usual ways.

@pittas
Copy link
Author

pittas commented Oct 24, 2019

Unfortunately the methods you mentioned are not valid for the system we are using. However the strange thing as I mentioned is that in Kodi on Windows it works fine, but Kodi on Android does not load the m3u. I'm attaching the log here as you requested.

kodi.log

@phunkyfish
Copy link
Member

Ok, the url works for my on any platform I have. Can you try turning off caching in the addon settings?

@phunkyfish
Copy link
Member

Also, if you paste the url into a browser on android does it download the M3U file?

@pittas
Copy link
Author

pittas commented Oct 24, 2019

I turned the cache off but the problem persists, no change at all.

If I paste the link into the browser on Android it successfully downloads the playlist.

@phunkyfish
Copy link
Member

Can you try URL encoding the :'s by any chance?

So %3A instead of the extra colon's?

So: http://host.com:4300/siptv/user%3Apass%3Aplaylist.m3u

@pittas
Copy link
Author

pittas commented Oct 24, 2019

Ok I just tried but no change I'm afraid

@pittas
Copy link
Author

pittas commented Oct 25, 2019

I wanted to add that if I download the actual m3u file and add it to the client as a local path it works.
Problem is only when trying to retrieve it as a url

@phunkyfish
Copy link
Member

Do you have another android system to try this on and maybe also try with the Matrix build?

@phunkyfish
Copy link
Member

phunkyfish commented Oct 25, 2019

can you try loading a file from a local web server that also has :’s in the name?

@phunkyfish
Copy link
Member

I think this is an incompatibility between Android and the service you are using. Can you upgrade Android?

@vpeter4
Copy link
Contributor

vpeter4 commented Jun 14, 2020

The problem is that libcurl supports http/2 protocol and offer this with http header Upgrade: h2c.
Servers not supporting it should just ignore the header but seems server used here doesn't upgrade connection but also doesn't return any data. So the problem is not character : (btw it works also encoded with %3a) but the server itself.

The solution in Kodi Matrix is to disable http2 support with network/disablehttp2 in advancedsettings.xml.
Not sure if this is possible in Kodi Leia build with http2 support.

#  /storage/.kodi/userdata/advancedsettings.xml
  <network>
    <disablehttp2>1</disablehttp2>
  </network>

@phunkyfish phunkyfish changed the title URL format works on Windows but not on Android URL format works on Windows but not on Android - Libcurl - Disable http2 Jun 19, 2020
@phunkyfish phunkyfish pinned this issue Jun 19, 2020
@I-Cat
Copy link
Contributor

I-Cat commented Aug 4, 2020

@pittas I Also see the api issue.
@phunkyfish

I am a experienced member on XDA developers hub

https://forum.xda-developers.com/member.php?u=7602857

I hope I can help you guys out.
Off subject:

Right Now I can't seem to do any pull requests on the main https : // xbmc / xbmc thread it seems to be locked.

😄

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