home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
General Development (no feature request here!)
TVDatabase, TVProgam properties, coding...
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Boris" data-source="post: 18227" data-attributes="member: 13068"><p>I'm working on a dedicated downloader/parser of an xml EPG program from a French team. (telecable.xml)</p><p>"telecable.xml" is a team which made every day an xml and put it on mirrors, ready to be use. EPG data in this file are only in French for French usage. I have take contact with the team to be able to use their job, and it is ok.</p><p></p><p>I'm working on a plugin which take care of downloading this xml by choosing a mirror, and then parse the xml, just using the programs information of channels which are configure in MediaPortal. The initial file contains near 180 channels.</p><p></p><p>I based my work on "XMLTVImport.cs".</p><p>All of this is ok. </p><p></p><p>The questions I have: </p><p></p><p>1/ where is the property for "episode" used? I have check that in the database these information are present (and it is ok), but I don't see them in the tvguide.</p><p>Same question for star-rating and classification.</p><p>May I have to ignore these properties and put information in the description? Or these properties will be used shortly?</p><p></p><p>2/ is my code “ok” for the future?</p><p>[code]</p><p>TVDatabase.RemoveOldPrograms();</p><p>- for each channel I have –</p><p> sql = "delete from tblPrograms where idChannel=" + channel.ID + ";\n";</p><p> TVDatabase.m_db.Execute(sql);</p><p> - for each program I have -</p><p> TVProgram program = new TVProgram();</p><p> set each program’s property with their own value</p><p> TVDatabase.UpdateProgram(program);</p><p> - end for each –</p><p>- end for each -</p><p>TVDatabase.RemoveOverlappingPrograms();</p><p>[/code]</p><p>All my code is done in a thread, with "lot" of thread.sleep.</p><p></p><p>Thanks.</p></blockquote><p></p>
[QUOTE="Boris, post: 18227, member: 13068"] I'm working on a dedicated downloader/parser of an xml EPG program from a French team. (telecable.xml) "telecable.xml" is a team which made every day an xml and put it on mirrors, ready to be use. EPG data in this file are only in French for French usage. I have take contact with the team to be able to use their job, and it is ok. I'm working on a plugin which take care of downloading this xml by choosing a mirror, and then parse the xml, just using the programs information of channels which are configure in MediaPortal. The initial file contains near 180 channels. I based my work on "XMLTVImport.cs". All of this is ok. The questions I have: 1/ where is the property for "episode" used? I have check that in the database these information are present (and it is ok), but I don't see them in the tvguide. Same question for star-rating and classification. May I have to ignore these properties and put information in the description? Or these properties will be used shortly? 2/ is my code “ok” for the future? [code] TVDatabase.RemoveOldPrograms(); - for each channel I have – sql = "delete from tblPrograms where idChannel=" + channel.ID + ";\n"; TVDatabase.m_db.Execute(sql); - for each program I have - TVProgram program = new TVProgram(); set each program’s property with their own value TVDatabase.UpdateProgram(program); - end for each – - end for each - TVDatabase.RemoveOverlappingPrograms(); [/code] All my code is done in a thread, with "lot" of thread.sleep. Thanks. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
TVDatabase, TVProgam properties, coding...
Contact us
RSS
Top
Bottom