clynch 0 Posted November 16, 2018 Share Posted November 16, 2018 I just made the switch from Plex to Emby. One of the big features that piqued my interest was the ability to include M3u streams without as much effort as plex. I am running into issues when I input the below link into the M3u URL field (The X's have replace the actual creds):http://irislinks.net:83/get.php?username=XXXXXX&password=XXXXXX&type=m3u_plus&output=ts When I add the link, I get the error: There was an error saving the TV provider. Please ensure it is accessible and try again. I have confirmed the following items so far: 2018-11-16 17:40:48.157 Info HttpServer: HTTP POST http://emby.XXXXX.net:8096/LiveTv/TunerHosts. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36 2018-11-16 17:40:48.157 Info HttpClient: GET http://irislinks.net:83/get.php?username=XXXXX&password=XXXXX&type=m3u_plus&output=ts2018-11-16 17:40:48.202 Error HttpClient: Error getting response from http://irislinks.net:83/get.php?username=XXXXX&password=XXXXX&type=m3u_plus&output=ts 2018-11-16 17:37:51.308 Error HttpServer: Error processing request *** Error Report *** Version: 3.5.3.0 Command line: /system/EmbyServer.dll -programdata /config -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode 3 Operating system: Unix 4.15.0.39 64-Bit OS: True 64-Bit Process: True User Interactive: True Processor count: 16 Program data path: /config Application directory: /system System.Net.Http.HttpRequestException: Request headers must contain only ASCII characters. at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.SendAsyncInternal(HttpRequestOptions options, String httpMethod) at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.SendAsync(HttpRequestOptions options, String httpMethod) at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.Get(HttpRequestOptions options) at Emby.Server.Implementations.LiveTv.TunerHosts.M3UTunerHost.Validate(TunerHostInfo info) at Emby.Server.Implementations.LiveTv.LiveTvManager.SaveTunerHost(TunerHostInfo info, Boolean dataSourceChanged) at MediaBrowser.Api.LiveTv.LiveTvService.Post(AddTunerHost request) at Emby.Server.Implementations.Services.ServiceExecGeneral.GetTaskResult(Task task) at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost appHost, IRequest httpReq, IResponse httpRes, ILogger logger, String operationName, CancellationToken cancellationToken) at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IHttpRequest httpReq, String urlString, String host, String localPath, CancellationToken cancellationToken) System.Net.Http.HttpRequestException at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.SendAsyncInternal(HttpRequestOptions options, String httpMethod) at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.SendAsync(HttpRequestOptions options, String httpMethod) at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.Get(HttpRequestOptions options) at Emby.Server.Implementations.LiveTv.TunerHosts.M3UTunerHost.Validate(TunerHostInfo info) at Emby.Server.Implementations.LiveTv.LiveTvManager.SaveTunerHost(TunerHostInfo info, Boolean dataSourceChanged) at MediaBrowser.Api.LiveTv.LiveTvService.Post(AddTunerHost request) at Emby.Server.Implementations.Services.ServiceExecGeneral.GetTaskResult(Task task) at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost appHost, IRequest httpReq, IResponse httpRes, ILogger logger, String operationName, CancellationToken cancellationToken) at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IHttpRequest httpReq, String urlString, String host, String localPath, CancellationToken cancellationToken) Link to comment Share on other sites More sharing options...
Luke 37068 Posted November 16, 2018 Share Posted November 16, 2018 See here: ystem.Net.Http.HttpRequestException: Request headers must contain only ASCII characters. Did you customize the user agent? Link to comment Share on other sites More sharing options...
clynch 0 Posted November 16, 2018 Author Share Posted November 16, 2018 (edited) No I haven't. Is that something that is required to be set or will it use a default setting? I wasnt able to find a link in the wiki to explain it or provide a walkthrough. Also probably should have provided this info. Emby is running in a docker instance on a dedicated server (Ubuntu 18.04) Edited November 16, 2018 by clynch Link to comment Share on other sites More sharing options...
Luke 37068 Posted November 16, 2018 Share Posted November 16, 2018 Please attach the complete emby server log. thanks. Link to comment Share on other sites More sharing options...
clynch 0 Posted November 16, 2018 Author Share Posted November 16, 2018 Here is the full file. I redacted my home IP along Usernames and Pass, but if you need the full unredacted let me know and I will PM you Emby_Log_Redacted.txt Link to comment Share on other sites More sharing options...
Luke 37068 Posted November 16, 2018 Share Posted November 16, 2018 Can you show a screenshot of your m3u setup page? thanks. Link to comment Share on other sites More sharing options...
clynch 0 Posted November 16, 2018 Author Share Posted November 16, 2018 Sure thing! Thanks for all the help. Link to comment Share on other sites More sharing options...
Luke 37068 Posted November 16, 2018 Share Posted November 16, 2018 does your iptv username or password have a diacritic or accent character in it? Link to comment Share on other sites More sharing options...
Jdiesel 1114 Posted November 16, 2018 Share Posted November 16, 2018 What happens when you enter your m3u url in a regular web browser? Does the file download? Link to comment Share on other sites More sharing options...
clynch 0 Posted November 16, 2018 Author Share Posted November 16, 2018 (edited) @@Luke, there is no special character in the link. There are only digits from 0-9 and both the Username and Password are 8 characters long. The actual account name though is an email, however i believe that is only for communication between me and the provider and the email is never being referenced for connection purposes. There is one thing to note though (This is kind of in line with Jdiesel's question as well). Whenever i do a wget from the CLI, I need to enclose the whole web address in quotes otherwise my computer breaks down the address into several parts and does not download the file properly. ex link: http://irislinks.net:83/get.php?username=12345678&password=12345678&type=m3u_plus&output=ts@@Jdiesel. I am able to perform a download of the m3u File via CLI. The download completes. The weird thing is that then I can upload the file into Emby and the file works fine as I can stream from each channel. However, I would prefer to allow Emby Server to perform everything rather than writing a script to automatically download and update the M3U file in Emby. Edited November 16, 2018 by clynch Link to comment Share on other sites More sharing options...
Luke 37068 Posted November 16, 2018 Share Posted November 16, 2018 So there is a @ in the username? Link to comment Share on other sites More sharing options...
clynch 0 Posted November 16, 2018 Author Share Posted November 16, 2018 Sorry that confusion is on me. There is no @ symbol in the M3u link Link to comment Share on other sites More sharing options...
Jdiesel 1114 Posted November 16, 2018 Share Posted November 16, 2018 Are there any special character or symbols in either the username or password? Sounds like it might be an issues with how Emby is handling the PHP encoding. Most browsers should automatically encode the url so it usually isn't an issue, Emby may not be doing this. Link to comment Share on other sites More sharing options...
clynch 0 Posted November 16, 2018 Author Share Posted November 16, 2018 @@Jdiesel. Not in the Username or password. There is a "?" after the get.php, and three "&" symbols between Username, Password and the M3U output type. I had a suspicion is was the PHP query as well. Assuming it is that, would I encounter any issues in creating a bash script that downloads the file and then have Emby link to that file? IE would Emby update correctly and associate correctly with the XML file. Link to comment Share on other sites More sharing options...
Solution Luke 37068 Posted November 16, 2018 Solution Share Posted November 16, 2018 Yes you could also do that, point Emby to an m3u file. 1 Link to comment Share on other sites More sharing options...
clynch 0 Posted November 16, 2018 Author Share Posted November 16, 2018 Sounds good! I'll go ahead with the script and report back if I have an issue. Is there anything special that I need to do to get emby to update its channel lineup or will it just pull the file anytime there is a request for live tv? Link to comment Share on other sites More sharing options...
Jdiesel 1114 Posted November 17, 2018 Share Posted November 17, 2018 I am surprised to hear that there were no special characters in your username or password. I once tested an IPTV service that used the exact same url format with no issues whatsoever. Link to comment Share on other sites More sharing options...
clynch 0 Posted November 17, 2018 Author Share Posted November 17, 2018 Yeah it is definitely weird. In my experience, there is always some stupid hangup in the code that is causing it. I just dont know enough about the Emby program to go look for it, and honestly one person having issues with setting up their IPTV is not enough to justify taking away developers especially if there is a work around in place. Thank you guys though for helping make sure it wasnt something obivious on my end that was causing it, and for helping confirm that there can be a work around. Link to comment Share on other sites More sharing options...
silkz 3 Posted December 7, 2018 Share Posted December 7, 2018 (edited) I'm new so I am not sure if I should post to this thread or start a new one but I am having the same problem. My IPTV url looks like: http://r.tvservice.club:25461/get.php?username=XXXXX&password=XXXXXXXXX&type=m3u_plus&output=ts There are no symbols in the username or password. Putting in the URL directly in my browser produces a download of the m3u file. I am not sure how to make a script to work around this problem (also I am on windows not Linux). Can someone help me with the script? Thanks! Edit: The IPTV provided XMLTV URL was accepted without error by Emby though. Of course I have no tuners so its not doing anything. Edited December 7, 2018 by silkz Link to comment Share on other sites More sharing options...
kanipek 224 Posted December 7, 2018 Share Posted December 7, 2018 I'm new so I am not sure if I should post to this thread or start a new one but I am having the same problem. My IPTV url looks like: http://r.tvservice.club:25461/get.php?username=XXXXX&password=XXXXXXXXX&type=m3u_plus&output=ts There are no symbols in the username or password. Putting in the URL directly in my browser produces a download of the m3u file. I am not sure how to make a script to work around this problem (also I am on windows not Linux). Can someone help me with the script? Thanks! Edit: The IPTV provided XMLTV URL was accepted without error by Emby though. Of course I have no tuners so its not doing anything. Did you set up an M3U tuner? Link to comment Share on other sites More sharing options...
silkz 3 Posted December 8, 2018 Share Posted December 8, 2018 (edited) Did you set up an M3U tuner? I am having trouble like OP: https://imgur.com/5H9JGb3 Should I be using something different than m3u? Edited December 8, 2018 by silkz Link to comment Share on other sites More sharing options...
kanipek 224 Posted December 8, 2018 Share Posted December 8, 2018 M3U is what you need. I haven't set up one using a url before. Can you download the M3U and set it up using the local file? Or perhaps you need to add a username /password to the url? Sent from my SM-N900T using Tapatalk Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now