Kodi Community Forum
pvr.mythtv add-on - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: PVR & Live TV Support (https://forum.kodi.tv/forumdisplay.php?fid=167)
+---- Forum: MythTV (https://forum.kodi.tv/forumdisplay.php?fid=170)
+---- Thread: pvr.mythtv add-on (/showthread.php?tid=198833)



RE: pvr.mythtv add-on - biggaz - 2016-12-11

Hi,

Thanks for that, but it says when I install the ZIP that there's a dependancy on xbmc-pvr.5.2.1. What does that mean?


RE: pvr.mythtv add-on - janbar - 2016-12-12

(2016-12-11, 19:51)biggaz Wrote: Hi,

Thanks for that, but it says when I install the ZIP that there's a dependancy on xbmc-pvr.5.2.1. What does that mean?
That means you need to install the latest kodi (kodi 17 alias kryiton) to work with the addon.


RE: pvr.mythtv add-on - biggaz - 2016-12-13

Ah, groovy, okay. Must be that the Fedora people haven't built the latest one then. Shouldn't be too long then it'll start working.


RE: pvr.mythtv add-on - glubbish - 2016-12-13

latest nightly fails for this pvr:

16:03:27.323 T:140077082208640 DEBUG: PVR - Create - creating PVR add-on instance 'MythTV PVR Client'
16:03:27.323 T:140077082208640 DEBUG: SECTION:UnloadDll(/usr/lib/x86_64-linux-gnu/kodi/addons/pvr.mythtv/pvr.mythtv.so.4.9.1)
16:03:27.323 T:140077082208640 INFO: ADDON: Dll Destroyed - MythTV PVR Client
16:03:27.323 T:140077082208640 DEBUG: ADDON: Dll Initializing - MythTV PVR Client
16:03:27.323 T:140077082208640 DEBUG: SECTION:LoadDLL(/usr/lib/x86_64-linux-gnu/kodi/addons/pvr.mythtv/pvr.mythtv.so.4.9.1)
16:03:27.323 T:140077082208640 DEBUG: Loading: /usr/lib/x86_64-linux-gnu/kodi/addons/pvr.mythtv/pvr.mythtv.so.4.9.1
16:03:27.323 T:140077082208640 DEBUG: AddOnLog: MythTV PVR Client: Creating MythTV PVR-Client
16:03:27.323 T:140077082208640 DEBUG: AddOnLog: MythTV PVR Client: Addon compiled with XBMC_PVR_API_VERSION: 5.2.1 and XBMC_PVR_MIN_API_VERSION: 5.2.1
16:03:27.323 T:140077082208640 DEBUG: AddOnLog: MythTV PVR Client: Register handle @ libXBMC_addon...done
16:03:27.323 T:140077082208640 DEBUG: AddOnLog: MythTV PVR Client: Checking props...
16:03:27.323 T:140077082208640 DEBUG: AddOnLog: MythTV PVR Client: Checking props...done
16:03:27.323 T:140077082208640 DEBUG: AddOnLog: MythTV PVR Client: Register handle @ libXBMC_pvr...
16:03:27.324 T:140077082208640 ERROR: ADDON: Dll MythTV PVR Client - Client returned bad status (6) from Create and is not usable


RE: pvr.mythtv add-on - janbar - 2016-12-13

You need to upgrade addon to the latest. Kodi had upgraded the pvr api.
Edit: no nor the addon but kodi itself. Seems you use an old build of kodi.


RE: pvr.mythtv add-on - glubbish - 2016-12-13

Hi Janbar,

Trying to upgrade the addon says that its at the latest
Kodi is the latest nightly kodi 18.0-alpha1 Git:20161213

Thanks Derek


RE: pvr.mythtv add-on - teeedubb - 2016-12-14

Hi Janbar,

Do you know how if pvr.mythtv supports asynchronous connect, which is a new feature in Kodi 17?

If Kodi is started before the backend is up (mine suspends when idle) the pvr add-on will not start up. I've made a script to ping the mythyv webserver and to disbale/enable pvr.mythtv based on the result, but Kodi will crash quite often when this is happening, which is annoying if I'm using Kodi for local content. Apparently asynchronous connect fixes this.

I found out about it in this thread: http://forum.kodi.tv/showthread.php?tid=295684

Thanks


RE: pvr.mythtv add-on - janbar - 2016-12-14

(2016-12-13, 10:59)glubbish Wrote: Hi Janbar,

Trying to upgrade the addon says that its at the latest
Kodi is the latest nightly kodi 18.0-alpha1 Git:20161213

Thanks Derek

Kodi 18 requires addon 5.0.2 to work. Seems it is not yet provided. Maybe in next nightly build.


RE: pvr.mythtv add-on - janbar - 2016-12-14

(2016-12-14, 03:49)teeedubb Wrote: Hi Janbar,

Do you know how if pvr.mythtv supports asynchronous connect, which is a new feature in Kodi 17?

If Kodi is started before the backend is up (mine suspends when idle) the pvr add-on will not start up. I've made a script to ping the mythyv webserver and to disbale/enable pvr.mythtv based on the result, but Kodi will crash quite often when this is happening, which is annoying if I'm using Kodi for local content. Apparently asynchronous connect fixes this.

I found out about it in this thread: http://forum.kodi.tv/showthread.php?tid=295684

Thanks

This change wasn't announced. The addon continue to send the magic packet and wait for a reload by kodi. But seems the reload has been dropped in krypton.
I post a question here http://forum.kodi.tv/showthread.php?tid=295699&pid=2478465#pid2478465


RE: pvr.mythtv add-on - janbar - 2016-12-15

@teeedubb ,

I pushed a fix to handle the startup.
The addon always managed these connections asynchonously. But the startup requires a handshake with the PIN.
So now if the addon failed to connect at startup it send the magic packet to wake up the backend (see settings for hw address of the backend) and then it open a dialog allowing the user to launch a retry or stop the negociation.
You won t need script. Let me know how it work for you.
Version is 4.11.6


RE: pvr.mythtv add-on - wsnipex - 2016-12-15

(2016-12-14, 09:58)janbar Wrote:
(2016-12-13, 10:59)glubbish Wrote: Hi Janbar,

Trying to upgrade the addon says that its at the latest
Kodi is the latest nightly kodi 18.0-alpha1 Git:20161213

Thanks Derek

Kodi 18 requires addon 5.0.2 to work. Seems it is not yet provided. Maybe in next nightly build.

Currently the addon fails to build on launchpad. Looks like a dependency on zlib was added sometime, but the debian packaging wasn't updated.


RE: pvr.mythtv add-on - janbar - 2016-12-15

@wsnipex, yes I anderstand now the root cause: That's mine Big Grin. I will update soon.

EDIT: fixed for branch master and Krypton


RE: pvr.mythtv add-on - teeedubb - 2016-12-16

Thanks janbar, I'll test it out


RE: pvr.mythtv add-on - raptorjr - 2016-12-16

Haven't tested it but saw that you added option for a prompt to delete a recording at the end. Very good improvement, have been waiting for this.


RE: pvr.mythtv add-on - thebpass - 2016-12-16

(2016-12-14, 10:09)janbar Wrote: This change wasn't announced. The addon continue to send the magic packet and wait for a reload by kodi. But seems the reload has been dropped in krypton.
I post a question here http://forum.kodi.tv/showthread.php?tid=295699&pid=2478465#pid2478465

I dug around a little bit and found this checkin for TVHeadend: https://github.com/ksooo/pvr.hts/commit/fd8bc06d2cc8c2a0f2781ec9a22b2aaf53b28c76

And this associated checkin for kodi: https://github.com/xbmc/xbmc/commit/a0f046c30768b0a0c40173faf6046c950f57e321

I'm not sure the best way to accomplish this in pvr.mythtv since cppmyth doesn't seem to have any type of ASync connect method. Seems like this would end up a pretty major change.