Jump to content

Tvheadend plugin for Emby - Beta 1


Tolotos

Recommended Posts

Can you refresh the guide data in emby server, then attach the emby server log? Thanks.

Link to comment
Share on other sites

Something I have forgotten to say is that the two programs, both emby and tvheadend are for docker
 
the file is very large,
I'm going to give an example of a channel

 

2020-04-15 10:39:10.027 Info HttpServer: HTTP Response 200 to 192.168.22.143. Time: 16ms. http://192.168.22.140:8096/emby/System/Logs
2020-04-15 10:39:18.637 Info App: [TVHclient] HTSConnectionHandler.ensureConnection() : create new HTS-Connection
2020-04-15 10:39:18.638 Info App: [TVHclient] HTSConnectionHandler.ensureConnection: Used connection parameters: TVH Server = '192.168.22.140'; HTTP Port = '9981'; HTSP Port = '9982'; Web-Root = ''; User = 'emby'; Password set = 'True'
2020-04-15 10:39:18.640 Info App: [TVHclient] HTSConnectionAsync.open: IPEndPoint = '192.168.22.140:9982'; AddressFamily = 'InterNetwork'
2020-04-15 10:39:18.640 Info App: [TVHclient] HTSConnectionAsync.open: socket connected.
2020-04-15 10:39:18.646 Info App: [TVHclient] HTSConnectionAsync.authenticate: start
2020-04-15 10:39:18.663 Info App: [TVHclient] HTSConnectionAsync.authenticate: authenticated = True
2020-04-15 10:39:18.663 Info App: [TVHclient] HTSConnectionHandler.ensureConnection: connection established True
2020-04-15 10:39:28.025 Info HttpServer: HTTP GET http://192.168.22.140:8096/emby/System/Logs/embyserver.txt. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36
2020-04-15 10:39:28.032 Info HttpServer: HTTP Response 200 to 192.168.22.143. Time: 7ms. http://192.168.22.140:8096/emby/System/Logs/embyserver.txt
2020-04-15 10:40:26.732 Info HttpServer: HTTP GET http://192.168.22.140:8096/emby/Users/44f1676e80b44f48be58e7aa52ffdef7. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36
2020-04-15 10:40:26.734 Info HttpServer: HTTP Response 200 to 192.168.22.143. Time: 3ms. http://192.168.22.140:8096/emby/Users/44f1676e80b44f48be58e7aa52ffdef7
2020-04-15 10:40:26.740 Info HttpServer: HTTP GET http://192.168.22.140:8096/emby/Plugins. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36
2020-04-15 10:40:26.741 Info HttpServer: HTTP Response 200 to 192.168.22.143. Time: 1ms. http://192.168.22.140:8096/emby/Plugins
2020-04-15 10:40:26.748 Info HttpServer: HTTP GET http://192.168.22.140:8096/emby/web/configurationpages?pageType=PluginConfiguration. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36
2020-04-15 10:40:26.749 Info HttpServer: HTTP Response 200 to 192.168.22.143. Time: 1ms. http://192.168.22.140:8096/emby/web/configurationpages?pageType=PluginConfiguration
2020-04-15 10:40:29.188 Info HttpServer: HTTP GET http://192.168.22.140:8096/emby/LiveTv/ListingProviders. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36
2020-04-15 10:40:29.190 Info HttpServer: HTTP GET http://192.168.22.140:8096/emby/ScheduledTasks?IsEnabled=true. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36
2020-04-15 10:40:29.193 Info HttpServer: HTTP GET http://192.168.22.140:8096/emby/LiveTv/TunerHosts. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36
2020-04-15 10:40:29.196 Info HttpServer: HTTP Response 200 to 192.168.22.143. Time: 6ms. http://192.168.22.140:8096/emby/ScheduledTasks?IsEnabled=true
2020-04-15 10:40:29.200 Info HttpServer: HTTP Response 200 to 192.168.22.143. Time: 7ms. http://192.168.22.140:8096/emby/LiveTv/TunerHosts
2020-04-15 10:40:29.201 Info HttpServer: HTTP Response 200 to 192.168.22.143. Time: 14ms. http://192.168.22.140:8096/emby/LiveTv/ListingProviders
2020-04-15 10:40:31.084 Info HttpServer: HTTP POST http://192.168.22.140:8096/emby/ScheduledTasks/Running/9492d30c70f7f1bec3757c9d0a4feb45. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36
2020-04-15 10:40:31.091 Info HttpServer: HTTP Response 204 to 192.168.22.143. Time: 7ms. http://192.168.22.140:8096/emby/ScheduledTasks/Running/9492d30c70f7f1bec3757c9d0a4feb45
2020-04-15 10:40:31.096 Info HttpServer: HTTP GET http://192.168.22.140:8096/emby/ScheduledTasks?IsEnabled=true. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36
2020-04-15 10:40:31.100 Info HttpServer: HTTP Response 200 to 192.168.22.143. Time: 4ms. http://192.168.22.140:8096/emby/ScheduledTasks?IsEnabled=true
2020-04-15 10:40:34.132 Info App: [TVHclient] ChannelDataHelper: Adding channel 
 
HTSMessage:
  <dump>
    channelId : 9009255
    channelNumber : 2010
    channelName : MULTIDEPORTE
    channelIcon : imagecache/279
    eventId : 0
    nextEventId : 0
    services : 
HTSMessage:
  <dump>
    name : SAT/10788V/MULTIDEPORTE
    type : SDTV
    content : 1
    caid : 65535
    caname : Servicio encriptado
  </dump>
 
    tags : 2, 3, 
    method : channelAdd
  </dump>
 
 
2020-04-15 10:40:34.132 Info App: [TVHclient] ChannelDataHelper: Adding channel 
 
HTSMessage:
  <dump>
    channelId : 20724296
    channelNumber : 2000
    channelName : LALIGATV BAR
    channelIcon : imagecache/266
    eventId : 25932
    nextEventId : 25933
    services : 
HTSMessage:
  <dump>
    name : SAT/10714.25H/LALIGATV BAR
    type : HDTV
    content : 1
    caid : 65535
    caname : Servicio encriptado
  </dump>
 
---
 
the imagecache/266
channel "LALIGATV BAR"
corresponds to the tvheadend logo called 266.png.
 
Where are these images located in emby ?, I look in the cache folder for "266" and I cannot find
 
If this small fragment does not help you, I can give you more but they are 30MB, my guide file is very extensive
 
Hr4fHGy.png
 
Thank you
Edited by saed
Link to comment
Share on other sites

I really would need to see teh complete log containing both the refresh and then also from when you opened the channel list after the refresh was done. Thanks.

Link to comment
Share on other sites

  • 2 weeks later...

 

Hi. Sorry for the delay
 
I attach the requested registration.
 
Thanks a lot

 

 

Your TVH server is sending back 401 unauthorized errors:

2020-04-16 16:40:17.508 Info HttpClient: GET http://emby:pw@192.168.22.140:9981/imagecache/82
2020-04-16 16:40:17.509 Error HttpServer: Error processing request
	*** Error Report ***
	Version: 4.4.2.0
	Command line: /app/emby/EmbyServer.dll -programdata /config -ffdetect /app/emby/ffdetect -ffmpeg /app/emby/ffmpeg -ffprobe /app/emby/ffprobe -restartexitcode 3
	Operating system: Unix 4.19.0.8
	64-Bit OS: True
	64-Bit Process: True
	User Interactive: True
	Runtime: file:///app/emby/System.Private.CoreLib.dll
	System.Environment.Version: 3.1.2
	Processor count: 4
	Program data path: /config
	Application directory: /app/emby
	MediaBrowser.Model.Net.HttpException: MediaBrowser.Model.Net.HttpException: Unauthorized

Can you find out why, perhaps from TVH logging?

Link to comment
Share on other sites

  • 2 months later...
s-andy

Hi, guys!

I have: Emby Server 4.4.2.0, TVHclient 1.4.4.0; Tvheadend 4.2.2.
And constantly having problems with this setup.

Currently: Channels do not play in Emby via web interface. But, they do play via Emby Android app. They also do not play via Samsung SmartTV widget (not Tizen), but, I guess, this is related to the web UI problem.
Everything works fine via Tvheadend web interface and via TVHClient Android app.

I also had issues with: missing TV Guide, duplicate channels etc, but managed to resolve them (mostly by refreshing channels in Tvheadend, uninstalling/installing plugin and so on).
Before, several years ago, when an older version of Emby Server was used, everything worked fine.

Please help.

Update: By "do not play" I mean, that Emby is showing the animation circle, but never starts displaying. In Samsung app it's showing "Loading...".

Thanks.
Andriy

Edited by s-andy
Explained, what I meant by "do not play".
Link to comment
Share on other sites

vaise

@s-andy - 

I stopped using the TVH plugin ages back and just added the default tvh iptv stream to emby's native Live TV, which has never ever missed a beat.  In the LiveTV section of emby, I add this, which is the TVH stream :

http://192.168.1.202:9981/playlist/channels.m3u 

I then use a separate TV guide as I am in Australia and the TV channel supplied ones are pretty useless so I use IceTV (a paid for guild - $2.99/month).

I know very little about TVH, but this solution has worked for us for years now.

 

Link to comment
Share on other sites

s-andy

@vaise, thanks for your comment!

Actually, I'm wondering, if I'm supposed to do the same - i.e., to move out from the TVH plugin. Or should I try to fix it. What's recommended?

TVHeadEnd has quite a good TV guide - it it possible to use it without the plugin?

Link to comment
Share on other sites

vaise

To answer that you are not 'supposed' to do anything, it is all configurable to use what suits you best.  I have had other recording apps in the past (WMC, nextPVR etc) but when I moved to an unraid server and hence linux based, I needed to change - I tried three different ones and TVH was the best (albeit very configurable and somewhat confusing on initial load).  I used forum setup posts to do the initial setup with my HDHomeRuns and never knew about TVH's streaming capability until I came across another post on here.  I tried it and it worked from day 1.  It means Emby is doing all the recording management, nd it is very good at it.

Guide data is very much dependent on the country you are in and the capabilities in that country.  If you are just referring to the standard EPG stuff, that is not actually in TVH, but in the ID data sent in the digital channels by the TV providers.  In Australia we have a very bad data in there as the channel's do sneaky stuff to stop 'normal' PVR's from doing series linking.  The would change the show in the guide to something like 'Big Brother and sneak peak'.  For that reason, I use ICETV here as they re-work all the show names so they are always the same, plus they key in the data info for me.

Emby users in other countries get to use other EPG systems (search EPG in the Emby forrum).

Hope that helps.

Link to comment
Share on other sites

  • 2 weeks later...
muppets4

Just a heads up . Great plugin. One thing you must know. After filling in the settings things do not change, until you restart Emby. Took me a while. I could see in the tvheadend log that my username did not change after changing it in the plugin. A restart solves this.

Link to comment
Share on other sites

  • 4 weeks later...
On 28/06/2020 at 13:30, s-andy said:

Hi, guys!

I have: Emby Server 4.4.2.0, TVHclient 1.4.4.0; Tvheadend 4.2.2.
And constantly having problems with this setup.

Currently: Channels do not play in Emby via web interface. But, they do play via Emby Android app. They also do not play via Samsung SmartTV widget (not Tizen), but, I guess, this is related to the web UI problem.
Everything works fine via Tvheadend web interface and via TVHClient Android app.

I also had issues with: missing TV Guide, duplicate channels etc, but managed to resolve them (mostly by refreshing channels in Tvheadend, uninstalling/installing plugin and so on).
Before, several years ago, when an older version of Emby Server was used, everything worked fine.

Please help.

Update: By "do not play" I mean, that Emby is showing the animation circle, but never starts displaying. In Samsung app it's showing "Loading...".

Thanks.
Andriy

 

Hi Andy,

Which internet browser are you using. I just noticed that I have the same setup as you and same symptoms:

- It works from Tvheadend web interface, Android version of Emby and Firefox

- It does not work in Google Chrome (it used to work but not anymore)

Does it work for you in firefox?

 

Regards,

Ivan

Edited by Ivan_
Link to comment
Share on other sites

22 hours ago, Ivan_ said:

 

Hi Andy,

Which internet browser are you using. I just noticed that I have the same setup as you and same symptoms:

- It works from Tvheadend web interface, Android version of Emby and Firefox

- It does not work in Google Chrome (it used to work but not anymore)

Does it work for you in firefox?

 

Regards,

Ivan

Hi, let's look at an example. Please attach the information requested in how to report a media playback issue. thanks !

Link to comment
Share on other sites

  • 4 months later...

There seems to be a bug in the tvheadend plugin. If i start a tv channel sometimes the log says that it starts it one time and a coulple of seconds later it trys again. But it has actually started 2 connections to tvheadend server. When i then stop the channel one stops but the other stays running indefenetly.

If i restart emby the connection is emidietly dropped.

 

Skjermbilde.PNG

error.txt

Edited by Flippz
screen and log
Link to comment
Share on other sites

  • 4 months later...
darkside40

What is the actual state of this plugin? I mean it is in the plugin catalog which means that is should be actively supported and working. From what i have seen the original developer has abandoned this Plugin a while ago and now the Emby Team is in charge for it.

Is there anybody here who can confirm that this plugin is working with recent versions of Emby and TVH?

I tried to get the Plugin working some weeks ago (tried it many times in the past) but failed again. Now i ask myself if i do something wrong or if the plugin is simply broken. Any feedback from people which actively use this plugin would be appreciated.

Edited by darkside40
Link to comment
Share on other sites

muppets4

I use it actively with tvheadend and oscam on a Qnap server in conjunction with Emby. When setting it up I ran into problems. When entering your tvheadend username and password it does not save it. Only after restarting Emby the data was saved. Took me a while to solve it. 

Link to comment
Share on other sites

Q-Droid

The Emby team has been recommending the M3U URL option with TVHeadend. Don't know how much effort is going into the plugin maintenance.

 

 

Link to comment
Share on other sites

muppets4

In my specific case I cannot use the url option. My guide information comes from the dvb-c signal. I cannot be the only one. I've not seen that working through the url option

Link to comment
Share on other sites

Q-Droid
1 hour ago, darkside40 said:

Yes m3u might be an option but only without integrated recordings i think. 

I'm not quite sure what you mean by this. Using M3U tuner the TV recordings are done by Emby, from the internal guide and scheduler, directly to Emby libraries and including metadata.

If I recall this was not the case with the TVH plugin. But it's been a few years since I last tried it.

 

Link to comment
Share on other sites

muppets4
7 hours ago, Q-Droid said:

Are you saying the TVH XMLTV API doesn't work for you? Used as the TV Guide Data Provider in Emby it should match the channels from the M3U URL.

http://localhost:9981/xmltv/channels

https://github.com/tvheadend/tvheadend/blob/master/docs/markdown/url.md

 

I never got that to work, while the plug-in worked great. And I can manage my recordings from within Emby. So why break something that is working great? 

Link to comment
Share on other sites

vaise
17 minutes ago, muppets4 said:

I never got that to work, while the plug-in worked great. And I can manage my recordings from within Emby. So why break something that is working great? 

Worked first time for me.

Emby is managing all the recordings then.

never missed a beat for me.

Less of failures points.

Been using  it that way for years.

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