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
MediaPortal 1 Talk
Hauppauge HD-PVR & Colossus Support
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="luci5r" data-source="post: 752273" data-attributes="member: 113478"><p>mm,</p><p></p><p>As "promised", I do have a question for you <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite2" alt=";)" title="Wink ;)" loading="lazy" data-shortname=";)" /></p><p></p><p>I was looking at the "Channel" and "TuningDetail" table in my MySQL Database for TV Server Configuration. I'm trying to write a PHP/MySQL script to create all the channels for me in these 2 tables using the tvguide.xml (for channel name & numbers). </p><p></p><p>Following are my 2 tables with 3 example channels that I had entered manually using the TV Server Configuration GUI:</p><p></p><p><img src="http://www.rahulsjohari.com/ASSETS/GRUBS/DB1.JPG" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>Here's my question:</p><p></p><p>In the "Channel" table, I can get data for these 2 fields from tvguide.xml:</p><p></p><p>- externalId</p><p>- displayName</p><p></p><p>In the "TuningDetail" table, I can get for these 2 fields from tvguide.xml:</p><p></p><p>- name</p><p>- channelNumber</p><p></p><p>Now I see there's a lot of fields which are pretty much consistent so I don't have to worry about them and I'll just copy what's in the rest of the records. However, there are 2 fields that seems to have "intelligent" data which is different for each record but not available in tvguide.xml:</p><p></p><p>- idTuning (this is in TuningDetail)</p><p>- idChannel (The primary key - in both tables which joins the 2 records)</p><p></p><p>Where do I get these 2 values from? Do I generate them on my own? They are obviously not in the tvguide.xml; I'm not sure where to get data for these 2 fields from. </p><p></p><p>Following is an example value from my "tvguide.xml" :</p><p></p><p>[CODE]</p><p><channel id="I655.189993291.microsoft.com"></p><p> <display-name>655 FNCHD</display-name></p><p> <display-name>655</display-name></p><p> <display-name>FNCHD</display-name></p><p> <display-name>Fox News Channel HD</display-name></p><p> <display-name>Satellite</display-name></p><p></channel></p><p>[/CODE]</p><p></p><p>As you can see, I have externalId, DisplayName & ChannelNumber available in this block; but I don't have idTuning & idChannel in here. </p><p></p><p>Would really appreciate your help. </p><p></p><p>Thanks!!</p><p></p><p><strong><u>EDIT</u></strong>:</p><p></p><p>I might be answering my own question here; but I just added another channel "manually" and I can see a pattern emerging. It is appearing to me that both "idTuning" and "idChannel" are not so intelligent - instead - they are just sequential numbers. If that is the case - my PHP script should be able to give them sequential numbers without issues. </p><p></p><p>If anyone can confirm this. Thanks!</p></blockquote><p></p>
[QUOTE="luci5r, post: 752273, member: 113478"] mm, As "promised", I do have a question for you ;) I was looking at the "Channel" and "TuningDetail" table in my MySQL Database for TV Server Configuration. I'm trying to write a PHP/MySQL script to create all the channels for me in these 2 tables using the tvguide.xml (for channel name & numbers). Following are my 2 tables with 3 example channels that I had entered manually using the TV Server Configuration GUI: [IMG]http://www.rahulsjohari.com/ASSETS/GRUBS/DB1.JPG[/IMG] Here's my question: In the "Channel" table, I can get data for these 2 fields from tvguide.xml: - externalId - displayName In the "TuningDetail" table, I can get for these 2 fields from tvguide.xml: - name - channelNumber Now I see there's a lot of fields which are pretty much consistent so I don't have to worry about them and I'll just copy what's in the rest of the records. However, there are 2 fields that seems to have "intelligent" data which is different for each record but not available in tvguide.xml: - idTuning (this is in TuningDetail) - idChannel (The primary key - in both tables which joins the 2 records) Where do I get these 2 values from? Do I generate them on my own? They are obviously not in the tvguide.xml; I'm not sure where to get data for these 2 fields from. Following is an example value from my "tvguide.xml" : [CODE] <channel id="I655.189993291.microsoft.com"> <display-name>655 FNCHD</display-name> <display-name>655</display-name> <display-name>FNCHD</display-name> <display-name>Fox News Channel HD</display-name> <display-name>Satellite</display-name> </channel> [/CODE] As you can see, I have externalId, DisplayName & ChannelNumber available in this block; but I don't have idTuning & idChannel in here. Would really appreciate your help. Thanks!! [B][U]EDIT[/U][/B]: I might be answering my own question here; but I just added another channel "manually" and I can see a pattern emerging. It is appearing to me that both "idTuning" and "idChannel" are not so intelligent - instead - they are just sequential numbers. If that is the case - my PHP script should be able to give them sequential numbers without issues. If anyone can confirm this. Thanks! [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Talk
Hauppauge HD-PVR & Colossus Support
Contact us
RSS
Top
Bottom