XBMC Community Forum
New MythTV add-on using libcmyth - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Development (/forumdisplay.php?fid=32)
+--- Forum: PVR Development (/forumdisplay.php?fid=136)
+--- Thread: New MythTV add-on using libcmyth (/showthread.php?tid=110694)



RE: New MythTV add-on using libcmyth - jwdv22 - 2012-05-31 19:05

First great work so far by everyone
OK so I am lost on the whole PVR branch thing... I am generally a smart dude, but I have a couple of questions that I couldn't determine in this lengthy but awesome 80 some page thread.
1.) Does this branch work with Myth.25 yet?
2.) Does it work for Windows? If so it is a completely different .exe that I saw in the first post, but couldn't get to my Mythbuntu backend (but I can from the same box with widows MythFrontend)
3.) if it doesn't work for Windows, is there a OpenElec generic 32 bit flavor?

Thanks and all the hardwork is appreciated.


RE: New MythTV add-on using libcmyth - tsp42 - 2012-05-31 23:29

(2012-05-31 19:05)jwdv22 Wrote:  First great work so far by everyone
OK so I am lost on the whole PVR branch thing... I am generally a smart dude, but I have a couple of questions that I couldn't determine in this lengthy but awesome 80 some page thread.
1.) Does this branch work with Myth.25 yet?
2.) Does it work for Windows? If so it is a completely different .exe that I saw in the first post, but couldn't get to my Mythbuntu backend (but I can from the same box with widows MythFrontend)
3.) if it doesn't work for Windows, is there a OpenElec generic 32 bit flavor?

Thanks and all the hardwork is appreciated.
1) Yes both the Eden-PVR and master branch includes dteirney's patches for v0.25
2) It should work. Try the Eden-PVR version first. It should be more stable.
3) Check InoD's posts.


RE: New MythTV add-on using libcmyth - kburkart - 2012-06-01 16:13

What is the exact url for the Eden-PVR branch?

Thanks


RE: New MythTV add-on using libcmyth - fiveisalive - 2012-06-01 17:48

(2012-06-01 16:13)kburkart Wrote:  What is the exact url for the Eden-PVR branch?

Thanks

You mean for the code? It's here:

https://github.com/tsp/xbmc/tree/Eden-pvr


RE: New MythTV add-on using libcmyth - apnar - 2012-06-02 04:28

(2012-05-29 21:26)InoD Wrote:  [*]Pull and create TAR of XBMC source (this script is from OpenELEC's tree).
[*]Copy TAR to local webserver
[*]Checkout & Pull OpenELEC tree
[*]Patch xbmc-pvr's meta file (modify package source and version)

Slightly off topic, but you can avoid the need for a local web server. Just drop the tarred up tree in the sources/xbmc-pvr directory. Then create the proper .md5 and .url files along side it. If they all match the openelec build scripts will skip the actual downloading and use the copy in sources.


RE: New MythTV add-on using libcmyth - InoD - 2012-06-02 15:31

(2012-05-27 10:07)InoD Wrote:  Ok, thanks. I will test it soon. Well, that does happen, but during startup it first grabs channel icons and probably it is done with that (m_jobqueue is empty) before it starts on the preview icons, but by that time cleanCache() was called. I think this change should do the trick.
The pull request from ktdreyer (168cb10443) causes compile errors on Linux now. Three log calls has CStdString as arguments... they should be converted using c_str() first.

Edit: there is also a compile error in tools.h (line 119), but I have no time to fix it now.

Caching of preview icons is working correctly now, thanks! Now I also do not get 300+ RECORDING_LIST_CHANGE_UPDATE events after every reboot anymore.
I've created a pull request that implements the graceful reconnecting to control, event and database after they got lost.

(2012-05-31 23:29)tsp42 Wrote:  
(2012-05-31 19:05)jwdv22 Wrote:  3.) if it doesn't work for Windows, is there a OpenElec generic 32 bit flavor?
3) Check InoD's posts.

I do not build the generic 32bit version of OpenELEC. But with the build scripts I've posted, you can do that yourself. Or maybe ZIOLele is going to build it.

(2012-06-02 04:28)apnar Wrote:  Slightly off topic, but you can avoid the need for a local web server. Just drop the tarred up tree in the sources/xbmc-pvr directory. Then create the proper .md5 and .url files along side it. If they all match the openelec build scripts will skip the actual downloading and use the copy in sources.

True. Also, I think you can also point to a local filesystem location in the meta file.


RE: New MythTV add-on using libcmyth - tdavis - 2012-06-03 07:22

Here's one feature I'd like to see..

If the channel is marked hidden in mythtv, can xbmc totally ignore it?

On a CableCard system, there is a lot of channels that I just don't care about.. and I've removed those channels from mythfrontend's view.


RE: New MythTV add-on using libcmyth - KeithLM - 2012-06-03 08:27

tdavis, what do mean? For me I do not see any channels that I've marked as not visible in the epg on xbmc. Are you seeing something different?


RE: New MythTV add-on using libcmyth - tdavis - 2012-06-03 19:59

Yes, on startup, the addon is pulling ALL epg guide info, but only showing what I've asked to see.

I'd like it to NOT pull guide data on hidden channels at ALL, unless I've un-hidden a channel, which should just then trigger a re-pull of the EPG.

It makes startup take 2-3 minutes on my systems.. It's a LOT of guide data to pull on a Cable Card system.

For example:

Code:
14:26:03 T:139762866321152   DEBUG: PVR - Get - channel 'ViendoMovies' loaded from the database
14:26:03 T:139762866321152   DEBUG: PVR - Get - channel 'Canal Sur' loaded from the database
14:26:03 T:139762866321152   DEBUG: PVR - Get - channel 'XEIPN US Feed (Canal Once)' loaded from the database
14:26:03 T:139762866321152   DEBUG: PVR - Get - channel 'XEIMT International (US feed)' loaded from the database
14:26:03 T:139762866321152   DEBUG: PVR - Get - channel 'CB TV' loaded from the database
14:26:03 T:139762866321152   DEBUG: PVR - Get - channel 'Video Rola' loaded from the database
14:26:03 T:139762866321152   DEBUG: PVR - Get - channel 'Cine Mexicano US Feed' loaded from the database
14:26:03 T:139762866321152   DEBUG: PVR - Get - channel 'Disney XD' loaded from the database
14:26:03 T:139762866321152   DEBUG: PVR - Get - channel 'CNN En Espanol- Mexico and US' loaded from the database
14:26:03 T:139762866321152   DEBUG: PVR - Get - channel 'Mun2' loaded from the database
14:26:03 T:139762866321152   DEBUG: PVR - Get - channel 'Tr3s: MTV, Musica y Mas' loaded from the database
14:26:03 T:139762866321152   DEBUG: PVR - Get - channel 'HISTORY CHANNEL EN ESPANOL' loaded from the database
14:26:03 T:139762866321152   DEBUG: PVR - Get - channel 'Cine Latino US' loaded from the database
14:26:03 T:139762866321152   DEBUG: PVR - Get - channel 'Canal 52MX International' loaded from the database
14:26:03 T:139762866321152   DEBUG: PVR - Get - channel 'Fox Deportes' loaded from the database
14:26:03 T:139762866321152   DEBUG: PVR - Get - channel 'Discovery en Espanol' loaded from the database
14:26:03 T:139762866321152   DEBUG: PVR - Get - channel 'Infinito US Feed' loaded from the database
14:26:03 T:139762866321152   DEBUG: PVR - Get - channel 'The Movie Channel Extra (Pacific)' loaded from the database
14:26:03 T:139762866321152   DEBUG: PVR - Get - channel 'The Movie Channel (Pacific)' loaded from the database

These are all hidden channels in the mythbackend - all channels that I can't watch (content protected), or don't want to watch (sorry, I don't speak spanish).


RE: New MythTV add-on using libcmyth - dodoadoodoo - 2012-06-03 23:29

(2012-06-03 19:59)tdavis Wrote:  These are all hidden channels in the mythbackend - all channels that I can't watch (content protected), or don't want to watch (sorry, I don't speak spanish).

I have the same situation. The reason is that the get epg setting for a channel is default true, regardless of the hidden parameter. Until this is changed upstream, you have three options.

Use the channel manager to manually disable epg for all hidden channels.

Use the sqlite command tool (see http://www.sqlite.org/sqlite.html) on the tv db (located in ~/.xbmc/userdata/Database) and set the offending parameter using a batch sql update statement.

Patch the code. Go into xbmc/pvr/channels/PVRChannel.cpp, and find the
Code:
CPVRChannel::CPVRChannel(const PVR_CHANNEL &channel, unsigned int iClientId)
constructor and find the line below (line 106 in my case, Eden-pvr branch):
Code:
m_bEPGEnabled             = true;
change that line into:
Code:
m_bEPGEnabled             = !channel.bIsHidden;

Build, install, start xbmc and reset the pvr database in the Live TV settings. Xbmc will rebuild the db with settings so that epg will not be pulled for hidden channels. This what I did, and it has worked out quite well for me.

@tsp: I'd be happy to send you a PR on this (very complicated Wink) fix, if you want to make this part of the package you eventually send to dushmaniac. Let me know what you think.

/D