MythTV PVR client Addon Developers Wanted - Developers Only! - Printable Version
+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Development (/forumdisplay.php?fid=32)
+--- Forum: PVR Development (/forumdisplay.php?fid=136)
+--- Thread: MythTV PVR client Addon Developers Wanted - Developers Only! (/showthread.php?tid=82015)
- outleradam - 2010-10-08 20:34
mythicalLibrarian, although it currently only supports MythTV, is interchangable with any program that has logical guide data. It's just a matter of changing the database interpreter.
You need: filename to get Title, Subtitle, Zap2itID (or programid which is generally based on some sort of zap2itid or some other way of telling if it is a movie), original airdate, the movie airdate and that's about it.
If you cannot match a zap2itID for MV, SH, or EP:
Start off by assuming everything is an episode and disqualify those without original airdate and subtitle. Check the subtitle against theTvDb and if it is not matchable, then mark the episode as a showing (s0e0) and dump everything into the database about the file.
True showings contain only a title usually and cannot be matched against TheTVDB. They usually contain an original airdate which matches the first ever airdate of the entire series. This is where the Zap2IT is really handy because it can confirm or deny the matchability against thetvdb. The series original airdate is contained in TheTvDb's xml and can be referenced. I've noticed that the series airdate is usually different then the first show, so it is generally logical to use.
Movies require a Title and a Year (pulled from the movie airdate and is always a year without month or day).
That flowchart can be used for XBMC easily. Each new program's database can be broken down into several variables which becomes the new database. Each program's database will require a database interpreter.
As long as you keep it modular and adapt whatever information is available to whatever information you require, any new program's database should be interchangable. It's just a matter of performing checks on information which is available and not hesitating to call a program a "generic programming" if insufficient information is available. The more you have, the better the match.
- tafypz - 2010-10-10 23:48
I added 2 patches to 10445
One that creates a settings file and an english language file to the pvr.mythtv folder.
The other one creates an initial lib for mythxml.
The lib for mythxml compiles fine; I tried to use Filesystem/FileCurl.h to access mythxml (current code in the lib) but it cannot get the data from there, I guess that I will have to use curl directly. If there is another "wrapper" around curl that one of you guys know of please let me know, I'd rather use code that already exists rather than piling on stuff with the same functionnality. As always I am open to any suggestion on the code.
- dteirney - 2010-10-11 11:37
tafypz Wrote:I added 2 patches to 10445
Might be best to ask this as a separate question in this Development forum. I'm not sure myself. Would be good if some of the wrapper code in XBMC could be used but I don't know if this is possible from an Addon.
- tafypz - 2010-10-12 08:47
I just updated the 10445 with mythxml.2.patch.
This patch queries the number of channels and get the channel list into xbmc.
I should have a full EPG tomorrow.
I did an initial test and the list of channels in the GUI was populated.
- tafypz - 2010-10-12 14:08
Thanks to dteirney mythxml.patch and mythxml.2.patch have been applied to svn.
There is no need to apply them right now.
I will provide a new patch tonight that will load the EPG.
- dubstar_04 - 2010-10-12 18:11
Guys I cannot thank you all enough for all the hard work you are doing on the mythtv pvr integration.
My c++ skills are poor and my studies and work don't allow me time or i would offer to get involved.
I am however more than willing to get involved with testing and supply feed back and bug reports if you will find this helpful.
I used to regularly build the pvr-testing2 branch to test but work has slowed on that, but hopefully when you guys have got to a point where you would like testing done i will be more than happy to do whatever i can.
I have just built the latest svn and i can confirm that all the channels are indeed loaded, in the correct order.
Is it wrong that i find this very exciting?
- tafypz - 2010-10-12 18:50
dubstar_04 Wrote:Guys I cannot thank you all enough for all the hard work you are doing on the mythtv pvr integration.
Thanks, we can always use people to test on different environments (in my opinion the more the merrier). I should have the EPG data in late tonight (New York Timezone), this will be in the form of a patch on the ticket 10445. After that I will probably provide a patch with some misc info/data (like trying to get the channel icons from the backend). I will post on this thread when this work will be in.
- dubstar_04 - 2010-10-12 19:08
tafypz Wrote:Thanks, we can always use people to test on different environments (in my opinion the more the merrier). I should have the EPG data in late tonight (New York Timezone), this will be in the form of a patch on the ticket 10445. After that I will probably provide a patch with some misc info/data (like trying to get the channel icons from the backend). I will post on this thread when this work will be in.
For the channels icons would it not be best to point the channel folder from xbmc to the channel folder on the myth-backend where the icons are?
For example if i set the icon location to:
Most of the icons are pulled into xbmc.
The icons in this folder may well be written there when mythweb starts but the location is irrelevant.
There seems to be an issue with the channel names but it basically works. I don't how portable this is over the network either.
I'm sure you have a much more slick plan for the implementation, food for thought any way.
I look forward to testing the epg patch.
- tafypz - 2010-10-12 19:14
dubstar_04 Wrote:For the channels icons would it not be best to point the channel folder from xbmc to the channel folder on the myth-backend where the icons are?
Thanks for the input, I am going more for the route when the end setup doesn't require anything but the mythbackend running on the server.
I am planning on storing the images locally in the userdata/addon/pvr.mythtv folder under something like channel_icons. I can get the icons for each channel over the wire from the mythxml api (tested it last night) and dump these icons in that folder. Then the initial channel definition will contain the path and hopefully display it properly.... In any case I will keep your suggestion in mind.
- dubstar_04 - 2010-10-12 19:35
tafypz Wrote:Thanks for the input, I am going more for the route when the end setup doesn't require anything but the mythbackend running on the server.
Thats sounds superb. If you can pull the icons from the backend and cache them locally with no input from the user, well, it doesn't really get any better than that.
The prospect of using xbmc as a full replacement for mythfrontend just seems too good to imagine.