jellyfin / jellyfin-plugin-tvheadend

https://jellyfin.org
MIT License
31 stars 19 forks source link

NotSupported on Jellyfin 10.9.0 #79

Closed Azelphur closed 3 months ago

Azelphur commented 4 months ago

I imagine work needs to be done to get this working with 10.9.0, but of course now that it is released/stable, this plugin no longer works. :(

crobibero commented 4 months ago

Unfortunately I have no way of testing this plugin so I was unable to update it.

Someone did start the upgrade process however: https://github.com/jellyfin/jellyfin-plugin-tvheadend/pull/78

emveepee commented 4 months ago

@crobibero I went to update the nextvpvr addon and was wondering what happened to LiveTvTunerInfo and LiveTvTunerStatus Trying to compile tvheadend I see the same problem. What are their replacements

crobibero commented 4 months ago

I have no way of testing either NextPVR or TvHeadEnd, but does ITunerHostManager provide what is needed?

emveepee commented 4 months ago

I have no way of testing either NextPVR or TvHeadEnd, but does ITunerHostManager provide what is needed?

They were being used by MP/Jellyfin in the past not the plugin, maybe the callbacks can just be removed. Edit no Jellyfin still wants the removed info. I guess I would need to understand what this PR did to the plugin https://github.com/jellyfin/jellyfin/pull/10858

[2024-05-13 11:57:09.843 -04:00] [ERR] [1] Emby.Server.Implementations.Plugins.PluginManager: Failed to load assembly "C:\Users\Martin\AppData\Local\jellyfin\plugins\NextPVR_8.0.0.0\Jellyfin.Plugin.NextPVR.dll". This error occurs when a plugin references an incompatible version of one of the shared libraries. Disabling plugin
System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types.
Could not load type 'MediaBrowser.Controller.LiveTv.LiveTvTunerInfo' from assembly 'MediaBrowser.Controller, Version=10.9.1.0, Culture=neutral, PublicKeyToken=null'.
   at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
   at System.Reflection.RuntimeModule.GetTypes()
   at Emby.Server.Implementations.Plugins.PluginManager.LoadAssemblies()+MoveNext() in D:\jellyfin\jellyfin\Emby.Server.Implementations\Plugins\PluginManager.cs:line 170
System.TypeLoadException: Could not load type 'MediaBrowser.Controller.LiveTv.LiveTvTunerInfo' from assembly 'MediaBrowser.Controller, Version=10.9.1.0, Culture=neutral, PublicKeyToken=null'.
SlowmoDK commented 4 months ago

Unfortunately I have no way of testing this plugin so I was unable to update it.

Someone did start the upgrade process however: #78

Can we get someone in here who can ? nothing seems to be happening at #78
@joshuaboniface

lomion0815 commented 3 months ago

I finalized the changes to support 10.9 with PR https://github.com/jellyfin/jellyfin-plugin-tvheadend/pull/81. It was tested with branch unstable.

crobibero commented 3 months ago

plugin v12 is now available.

tristan-k commented 2 months ago

Can anybody confirm the new version is working fine with Jellyfin 10.9.6. I just tried to connect to my TVHeadend installation but there are no channels in the corresponding Live TV section. I followed the guide and my channels are numbered.

My jellyfin log says

Jun 28 16:55:30 jellyfin jellyfin[113]: [16:55:30] [ERR] [TVHclient] HTSConnectionAsync.open: exception caught
Jun 28 16:55:30 jellyfin jellyfin[113]: System.Net.Sockets.SocketException (00000005, 0xFFFDFFFF): Name or service not known
Jun 28 16:55:30 jellyfin jellyfin[113]:    at System.Net.Dns.GetHostEntryOrAddressesCore(String hostName, Boolean justAddresses, AddressFamily addressFamily, Null>
Jun 28 16:55:30 jellyfin jellyfin[113]:    at System.Net.Dns.GetHostEntry(String hostNameOrAddress, AddressFamily family)
Jun 28 16:55:30 jellyfin jellyfin[113]:    at TVHeadEnd.HTSP.HTSConnectionAsync.open(String hostname, Int32 port)
Jun 28 16:55:32 jellyfin jellyfin[113]: [16:55:32] [ERR] [TVHclient] HTSConnectionAsync.open: exception caught
Jun 28 16:55:32 jellyfin jellyfin[113]: System.Net.Sockets.SocketException (00000005, 0xFFFDFFFF): Name or service not known
Jun 28 16:55:32 jellyfin jellyfin[113]:    at System.Net.Dns.GetHostEntryOrAddressesCore(String hostName, Boolean justAddresses, AddressFamily addressFamily, Null>
Jun 28 16:55:32 jellyfin jellyfin[113]:    at System.Net.Dns.GetHostEntry(String hostNameOrAddress, AddressFamily family)
Jun 28 16:55:32 jellyfin jellyfin[113]:    at TVHeadEnd.HTSP.HTSConnectionAsync.open(String hostname, Int32 port)
seiichiro0185 commented 2 months ago

I'm on Jellyfin 10.9.7 and TVH plugin version 12 works just fine (also worked on 10.9.6). Your log messages sound like a DNS-problem. Maybe try setting the IP-address for your TVH server in the plugin settings (from the messages I assume you put the hostname there)?

tristan-k commented 2 months ago

jellyfin_tvheadend

The error messages reads like a network problem but I'm pretty sure that it is not the issue. The Jellyfin instance is running inside a proxmox lxc and the the tvheadend server 192.168.178.81 is runnging inside another lxc with docker. I can ping the tvheadend server from inside the jellyfin lxc and connect to the ports.

root@jellyfin:~# ping 192.168.178.81
PING 192.168.178.81 (192.168.178.81) 56(84) bytes of data.
64 bytes from 192.168.178.81: icmp_seq=1 ttl=64 time=0.134 ms
64 bytes from 192.168.178.81: icmp_seq=2 ttl=64 time=0.062 ms
64 bytes from 192.168.178.81: icmp_seq=3 ttl=64 time=0.039 ms

root@jellyfin:~# nc -zv 192.168.178.81 9982
Connection to 192.168.178.81 9982 port [tcp/*] succeeded!
root@jellyfin:~# nc -zv 192.168.178.81 9981
Connection to 192.168.178.81 9981 port [tcp/*] succeeded!

root@jellyfin:~# curl -u jellyfin:secret-password http://192.168.178.81:9981/api/serverinfo 
{"sw_version":"4.3-2337~ge855f62e6","api_version":19,"name":"Tvheadend","capabilities":["caclient","tvadapters","satip_client","satip_server","trace","libav"]}