Kodi Community Forum

Full Version: pvr.mythtv add-on
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
(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.
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.
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
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.
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
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
(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.
(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=...pid2478465
@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
(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.
@wsnipex, yes I anderstand now the root cause: That's mine Big Grin. I will update soon.

EDIT: fixed for branch master and Krypton
Thanks janbar, I'll test it out
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.
(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=...pid2478465

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

And this associated checkin for kodi: https://github.com/xbmc/xbmc/commit/a0f0...950f57e321

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.