Jump to content

Live-TV M3U-List over TVH-Server not working


deganza

Recommended Posts

deganza

Hi

 

I've a TVHeadend Server 4.3.1787 and new emby version on a ubuntu 18.10 installation.

 

When I try to load the following m3u-List from TVH in emby

 

http://emby:emby@localhost:9981/playlist/channels.m3u

 

I get the following error (at the end of the topic).

If I create on TVH an user without name and password the I can connect in emby.

Also I can connect if emby is installed on another server and is connecting instead over localhost with the real IP-address of the server.

 

So from outside I can connect but not from inside the server. 

 

Do you have an idea what I'm doing wrong?

 

 

2019-03-24 11:41:19.375 Info HttpClient: Found userInfo in url: emby:emby ... url: http://emby:emby@localhost:9981/playlist/channels.m3u
2019-03-24 11:41:19.375 Info HttpClient: GET http://emby:emby@localhost:9981/playlist/channels.m3u
2019-03-24 11:41:19.384 Error HttpServer: Error processing request
    *** Error Report ***
    Version: 4.1.0.16
    Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb
    Operating system: Unix 4.18.0.16
    64-Bit OS: True
    64-Bit Process: True
    User Interactive: True
    Processor count: 8
    Program data path: /var/lib/emby
    Application directory: /opt/emby-server/system
    MediaBrowser.Model.Net.HttpException: MediaBrowser.Model.Net.HttpException: Unauthorized
     at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.SendAsyncInternal(HttpRequestOptions options, String httpMethod)
     at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.SendAsync(HttpRequestOptions options, String httpMethod)
     at Emby.LiveTV.TunerHosts.M3UTunerHost.Validate(TunerHostInfo info)
     at Emby.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(IRequest httpReq, String urlString, String host, String localPath, CancellationToken cancellationToken)
    Source: Emby.Server.Implementations
    TargetSite: Void MoveNext()

Link to comment
Share on other sites

deganza

Looks like TVH is sending back a response saying Unauthorized. I think this requires a setting in TVH, is that right @@Gerrit507 ?

 

Do you have any idea how to solve this problem?

Link to comment
Share on other sites

@@deganza, have you hit any issues with TVHeadend itself where your admin user gets locked out?

Are you using an XML EPGs inside of TVHeadend?

Link to comment
Share on other sites

@@cayars, yes even the admin user get locked out. In TVH I'm usin an XML which I have create with webgrab plus.

Mind if I ask how you get around this login issue for admin?

Link to comment
Share on other sites

just use the following link as Live-TV m3U-list: http://localhost:9981/playlist/channels and Emby will use the user without credentials.

Actually it won't.  However you can get this to work if you setup anonymous login for your network which it sounds like you did.

 

But that still doesn't help when you can't login as an admin to the console to make changes.  Seems very buggy lately.  You can even start it with "-C" and login and set new credentials but then a few minutes later are locked back out again.  :(

 

That makes it next to impossible to make any changes if the system is being used since you can't restart it.

Link to comment
Share on other sites

deganza

Actually it won't.  However you can get this to work if you setup anonymous login for your network which it sounds like you did.

 

But that still doesn't help when you can't login as an admin to the console to make changes.  Seems very buggy lately.  You can even start it with "-C" and login and set new credentials but then a few minutes later are locked back out again.  :(

 

That makes it next to impossible to make any changes if the system is being used since you can't restart it.

 

Yes I set a login for my network but I don't understand you for the rest. Which console do you mean and why do you have to make any changes?

Link to comment
Share on other sites

I mean when running through the setup wizard, when you get to the username/password fields.  Seems like the long standing bug (years) that if you enter anything here besides leaving it blank will cause lockout issues where you can't login to the WEB INTERFACE.

 

Leaving the blank (default) username/password field and filling in a trusted network does work around the problem but isn't that secure.  How much security you need for TVH in a local environment I guess is the real question.  Probably not a big deal to most people, especially if using something like Emby or Kodi to access TVH since you aren't logging in/using TVH directly anyway.

 

To me the biggest hurdle for using TVH is lack of good concise documentation. It's not an easy setup to do the first time and has a big learning curve for most people the first couple of setups.  It's really nice however when you get it setup and working especially merging channels from different devices, setting priorities, etc...

Link to comment
Share on other sites

alturismo

hmm, its been a while since i setted up my tvheadend, but when i remember it was working here ... i once saw this behavior on libreelec tvheadend ... but then i left it blank, finished setup, added my user and deleted the * user.

 

as you see above i have a admin user external AND my LAN user (just to simplify), i also could use the user:pass schema, but makes it more complicated to always enter user credentials for loacal mashines ...

 

and yes, theres a learning curve with tvheadend, but in the end ... you have a perfect tv backend, like u described also with several input sources for 1 channel (here as sample DVB-C and DVB-S).

  • Like 1
Link to comment
Share on other sites

deganza

may try changing the auth method, see attachement

 

I can still login to the console as admin. I've installed TVH and emby on the same ubuntu machine. Then I created an user without credentials and with allowed network 127.0.0.1.

Everything is fine so. I cab even include oder exclude some channels on this user. The auth method is plain and digest.

Link to comment
Share on other sites

Q-Droid

Could it be a specific platform/build issue? I have never been locked out though I've always run stable release. Over time my config has had 4-6 users with different access levels.

Link to comment
Share on other sites

Gerrit507

Sorry for the late response.

 

Change Authentication Type to "Plain" or "Both Plain and Digest" in tvheadend http server settings. This fixes 99% of login issues with tvheadend, because emby doesn't support the digest method of tvheadend.

Link to comment
Share on other sites

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