Jump to content

New to Emby - Need help setting up Live TV


Go to solution Solved by Luke,

Recommended Posts

Posted

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=ts
2018-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)

Posted

See here:

ystem.Net.Http.HttpRequestException: Request headers must contain only ASCII characters.

Did you customize the user agent?

Posted (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 by clynch
Posted

Please attach the complete emby server log. thanks.

Posted

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

Posted

Can you show a screenshot of your m3u setup page? thanks.

Posted

Sure thing! Thanks for all the help.

post-337508-0-47961000-1542405064_thumb.png

post-337508-0-37639500-1542405077_thumb.png

post-337508-0-77903900-1542405090_thumb.png

post-337508-0-87414000-1542405100_thumb.png

Posted

does your iptv username or password have a diacritic or accent character in it?

Posted

What happens when you enter your m3u url in a regular web browser? Does the file download?

Posted (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 by clynch
Posted

So there is a @ in the username?

Posted

Sorry that confusion is on me. There is no @ symbol in the M3u link

Posted

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.

Posted

@@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.

  • Solution
Posted

Yes you could also do that, point Emby to an m3u file.

  • Like 1
Posted

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?

Posted

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.

Posted

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.

  • 3 weeks later...
Posted (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 by silkz
Posted

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?

Posted (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 by silkz
Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...