Jump to content

Tvheadend plugin for Emby - Beta 1


Tolotos

Recommended Posts

vaise

Can someone tell me what happens when they try to play a tvheadend recording that was in use being recorded ?

Lately, if it is accidentally done, then once you catch up, you cant seem to play it again - corrupted in some way.

Also deleting a recording seems to get the system stuck - it was in such a mess I uninstalled and re-installed the plugin to get them in sync, and manually deleted the recording TV Show folder, the files were in there with a strange extension - 'deleting' or something - sorry I did not collect enough data on this issue. 

 

I have moved to a docker backend fully and the later emby release but done know if they are related.

 

The wife factor has meant I have had to remove this plugin and just use the library view only over the tvh recordings - so i lose the guide info, and the TV shows don't actually show up until a library scan is performed (real time scanning does not seem to work on linux/docker/unraid).  I have set full lib scans to every 30 minutes to get around that.

Link to comment
Share on other sites

Gerrit507
2018-08-01 10:47:00.644 Info HttpServer: HTTP GET http://emby-server:8096/Items/2872b39b7573c040ea9626ee178c1914/Images/Primary?maxWidth=214&tag=82c36d98b857776461a3aa6cb563532a&quality=90. UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36
2018-08-01 10:47:00.645 Info HttpClient: Found userInfo in url: USER:PASS ... url: http://USER:PASS@tvheadend-server:9981/imagecache/203
2018-08-01 10:47:00.645 Info HttpClient: GET http://USER:PASS@tvheadend-server:9981/imagecache/203
2018-08-01 10:47:00.652 Error HttpServer: Error processing request
	*** Error Report ***
	Version: 3.5.2.0
	Command line: /system/EmbyServer.dll -programdata /config -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode 3
	Operating system: Unix 4.15.0.29
	64-Bit OS: True
	64-Bit Process: True
	User Interactive: True
	Processor count: 8
	Program data path: /config
	Application directory: /system
	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 MediaBrowser.Providers.Manager.ProviderManager.SaveImage(BaseItem item, String url, ImageType type, Nullable`1 imageIndex, CancellationToken cancellationToken)
	   at Emby.Server.Implementations.Library.LibraryManager.ConvertImageToLocal(BaseItem item, ItemImageInfo image, Int32 imageIndex)
	   at Emby.Drawing.ImageProcessor.ProcessImage(ImageProcessingOptions options)
	   at MediaBrowser.Api.Images.ImageService.GetImageResult(BaseItem item, Guid itemId, ImageRequest request, ItemImageInfo image, Boolean cropwhitespace, ImageFormat[] supportedFormats, IImageEnhancer[] enhancers, Nullable`1 cacheDuration, IDictionary`2 headers, Boolean isHeadRequest)
	   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)
	MediaBrowser.Model.Net.HttpException
	   at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.SendAsyncInternal(HttpRequestOptions options, String httpMethod)
	   at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.SendAsync(HttpRequestOptions options, String httpMethod)
	   at MediaBrowser.Providers.Manager.ProviderManager.SaveImage(BaseItem item, String url, ImageType type, Nullable`1 imageIndex, CancellationToken cancellationToken)
	   at Emby.Server.Implementations.Library.LibraryManager.ConvertImageToLocal(BaseItem item, ItemImageInfo image, Int32 imageIndex)
	   at Emby.Drawing.ImageProcessor.ProcessImage(ImageProcessingOptions options)
	   at MediaBrowser.Api.Images.ImageService.GetImageResult(BaseItem item, Guid itemId, ImageRequest request, ItemImageInfo image, Boolean cropwhitespace, ImageFormat[] supportedFormats, IImageEnhancer[] enhancers, Nullable`1 cacheDuration, IDictionary`2 headers, Boolean isHeadRequest)
	   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) 

picons are not working for me in version 1.3.7.0 and Emby Server 3.5.2.0.

It tries to get the picon using http (user/pass) format URL from TVHeadEnd but returns unauthorized, if I access http://USER:PASS@tvheadend-server:9981/imagecache/203 it works just fine. Any clue?

 

In Tvheadend:

Go to Configuration / General / Base

Change Authentication type to "Both plain and digest"

Link to comment
Share on other sites

fneves

In Tvheadend:

Go to Configuration / General / Base

Change Authentication type to "Both plain and digest"

 

I think I already have it, not exactly like that, perhaps my version is older?

ZJmxyKL.png

Link to comment
Share on other sites

Gerrit507

I think I already have it, not exactly like that, perhaps my version is older?

ZJmxyKL.png

Could be. I have version 4.3

Don't you have that setting in your version?

Link to comment
Share on other sites

fneves

Could be. I have version 4.3

Don't you have that setting in your version?

 

Nop just that setting on the screenshot "Use HTTP digest authentication", anyway the URL in the logs of emby work just fine if I access it throught the browser, the picon is return just fine.

Link to comment
Share on other sites

  • 1 month later...
Gerrit507

 

Hello,
How can I update the picons, or elect them to be recreated?
I have currently changed some channels and the previous ones remain
regards

 

Emby doesn't update a channel icon once it already has downloaded a icon.

 

I always use this workaround:

1) In TvHeadend go into the settings of your user and set minmal and maximal channel number to 999 for example.

2) Run refresh guide task in emby. Emby will delete all channels from it's db.

3) Set minimal and maximal channel number back to 0.

4) Run refresh guide and emby should pull everything from scratch.

 

You might also have to create a new user for this. Because I think the admin user always has full access.

Edited by Gerrit507
  • Like 1
Link to comment
Share on other sites

Emby doesn't update a channel icon once it already has downloaded a icon.

 

I always use this workaround:

1) In TvHeadend go into the settings of your user and set minmal and maximal channel number to 999 for example.

2) Run refresh guide task in emby. Emby will delete all channels from it's db.

3) Set minimal and maximal channel number back to 0.

4) Run refresh guide and emby should pull everything from scratch.

 

You might also have to create a new user for this. Because I think the admin user always has full access.

 

 
I work for me, thank you very much
Edited by saed
Link to comment
Share on other sites

  • 1 month later...

I am using TV live together with the emby tvheadend plugin. The TV channels work fine. But the TV radio channels are not played. The radio channels are correctly tagged with the "Other" tag. In the tvheadend settings  channels taged with 'Other' is set to radio.  What is wrong?

 

My configuration:

Ubuntu 18.04 LTS

TVheadend server: HTS Tvheadend 4.3-1480~gddfbf1488

Emby Server: 3.5.3.0

Emby Tvheadend plugin: 1.3.9.0

Log.html

post-339574-0-19335400-1540568247_thumb.png

Link to comment
Share on other sites

Hello. Can anybody here give me some information about which version of TVH they are using, and the architecture? I can only see TVH recordings, but Live TV channel list is empty. 

 

I'm using latest TVH plugin 1.3.9.0, Emby 3.5.3.0, and TVH 4.2.7-17~g45cc65a03 on an Odroid XU4 (using the raspbian-stretch TVH packages).

 

If someone experienced the same issue and solved it, or can advice me about using a different version in order to make it work, I'd appreciate.

 

(Note: I also opened a topic for my issue: https://emby.media/community/index.php?/topic/64583-no-channels-with-tvheadend-plugin/)

Link to comment
Share on other sites

  • 2 weeks later...
Commerzpunk

Hello,

in the meantime i have purchased emby premiere livetime.

I am very very disappointed because my problem using the TVHeadend plugin is back again.

The previous solution was misleading because it had nothing to do with the user. It just was the restarting of the emby server

 

After some testings i can tell that in some cases that emby server starts its not correctly connecting to TVH.

 

There are 2 logs attached. One NOT OK, after starting the server and then navigating to Live TV gets the whole server session hanging as described before.

Just a complete refresh (closing browser tab and opening again) makes it respond again. To TV again, stuck. refresh. OK. Restart Server.

That shows the second log, the ok, named file.

 

While this happens, i monitored the TVH debug log:

 

2018-11-18 14:34:36.471 htsp: Got connection from 192.168.178.59 <<<<< This is the "hanging" login. Just connection and nothing more happens.
2018-11-18 14:36:27.870 htsp: 192.168.178.59: Disconnected  <<<<< restarting emby server
2018-11-18 14:36:49.697 htsp: Got connection from 192.168.178.59 <<<<< This is the correct working login
2018-11-18 14:36:49.793 htsp: 192.168.178.59: Identified as user 'emby' (unverified)
2018-11-18 14:36:49.793 htsp: 192.168.178.59 [ emby ]: Welcomed client software: TVHclient4Emby-3.6.0.65 (HTSPv20)
2018-11-18 14:36:49.820 htsp: 192.168.178.59 [ emby | TVHclient4Emby-3.6.0.65 ]: Identified as user 'emby'
2018-11-18 14:36:49.820 htsp: 192.168.178.59 [ emby | TVHclient4Emby-3.6.0.65 ]: Privileges updated
 
I am pretty sure there is nothing wrong with my TVH setup because all all all all other clients work fine since many years.
 
 
I really hope to be able to provide the information that is needed to make this connection work.
 
If not, please emby developers take a look what happens there because its not very smooth to make the whole GUI die this way one because a plugin got (what ever kind of) problems.

embyserver - OK.txt

embyserver-not OK.txt

Link to comment
Share on other sites

Gerrit507

First of all: I do not profit from emby premiere in any way. I do this voluntarily in my short freetime. Why do you buy it if you don't like it?

 

Second: The logfile "embyserver - not OK" doesn't contain ANY error related to tvheadend.

 

Instead there are two dlna errors and one LibraryMonitor error.

 

Turn off dlna and the automatic library scan and see if the issue stops happening.

Link to comment
Share on other sites

Commerzpunk

Hello Gerrit507,

i not not intend to say you are profiting from something. sorry if you got me wrong.

Why do i buy it if i dont like it. very simple: because since emby beta 3.6 live tv needs premiere subscription.

 

I did what you suggested but its still the same. Did you read my previous descriptions and lukes ideas? Its clear to see if i stop using this plugin the problems are gone.

So there must be something, even if its not in the logs.

Did you also see what i pointet too in the TVH logs? Some of the connections to it seem not to propper work after starting up the emby server. As far as i got it thats the reason why it stucks.

 

I really hope you can see that i try to help to get this thing working.

Link to comment
Share on other sites

Gerrit507

Kein Ding.

 

What tvheadend version do you installed?

 

I'm trying to help but I out of ideas, too. It's just like it has to do something with your setup or config imho because you're the only user experiencing this issue at the moment.

Link to comment
Share on other sites

  • 2 months later...
Gerrit507

Hi, I have missing channel icons on all clients. When using the browser I can see I am getting unauthorized back from the server when it requests the icon from this path

 

http://192.168.44.10:8096/emby/Items/9466/Images/Primary?maxHeight=540&tag=14410a3825dfc740c0ebf41736a52a71&quality=90

In Tvheadend:

Go to Configuration / General / Base

Change Authentication type to "Both plain and digest"

 

If you don't have the setting Authentication type then tick off "Use HTTP digest authentication".

  • Like 1
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...