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 Plugins
myVoice Open Beta
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="Tide" data-source="post: 253264" data-attributes="member: 71470"><p>This is what I have so far. My P:\Program Files\Team MediaPortal\MediaPortal\database\TVDatabaseV21.db3 file has what I am guessing is the stock 11 TV channels.</p><p></p><p>When I set up the TV server I set up a MySQL database. In that database if I</p><p>[CODE]SELECT * FROM tvlibrary.channel c;[/CODE]</p><p></p><p>I get the results posted in the attachment.</p><p></p><p>I am guessing MyVoice needs to have a way to tell between a "client only" and a "client server" setup. If it is a "client server setup" then it will need to figure out if it is a SQLite database or a MySQL database (assuming this matters) and get its data from there. I am guessing the table "tvlibrary.channel will provide the data you are looking for to determine the radio and TV channels. </p><p></p><p>There is a column in the tvlibrary.channel called isTV and one called isRadio. They return values of b'0' for "No' and b'1' for "Yes". You could for instance say (I am no programmer this just makes logical sense):</p><p></p><p>Count = tvlibrary.channel where isTV == b'1' then</p><p>(Whatever you do with it for myVoice maybe something like)</p><p>Write myVoice.db3 tvchannels.total == Count</p><p>For i in Count Add entry to tvchnnels.list</p><p>(Whatever you need to collect here maybe Channel id, Channel Name, etc.)</p><p></p><p>Then you could do the same with Radio.</p><p></p><p>I wish I could actually do this myself but I am not even close yet. I can help with testing it and figuring out the logic though.</p><p></p><p>If anyone can take this up and add it that would be great.</p><p></p><p>For now do you think there would be any harm in manually editing my P:\Program Files\Team MediaPortal\MediaPortal\database\TVDatabaseV21.db3 and RadioDatabase4.db3 to reflect what is in my MySQL database so your program will pull the correct information? I do not know if any other file references this but if it does it is wrong anyway so I edited TVDatabaseV21.db3 and added my channels manually. Now I can verbally change the channel past channel 13!!! Guess I will do the radio database next. Hopefully someone can code a fox for this setup. I know I can't be the only person running into this. I have just begun to look at C# but I know nothing. I looked at the source and can tell a little about what is going on but I have no clue how to create an if statement to check for tv server and then to check for database type and then to get the data from the database and then use it instead of what is used for a client only installation.</p><p></p><p>If anyone wants me to post anymore information or test anything to solve this please let me know.</p></blockquote><p></p>
[QUOTE="Tide, post: 253264, member: 71470"] This is what I have so far. My P:\Program Files\Team MediaPortal\MediaPortal\database\TVDatabaseV21.db3 file has what I am guessing is the stock 11 TV channels. When I set up the TV server I set up a MySQL database. In that database if I [CODE]SELECT * FROM tvlibrary.channel c;[/CODE] I get the results posted in the attachment. I am guessing MyVoice needs to have a way to tell between a "client only" and a "client server" setup. If it is a "client server setup" then it will need to figure out if it is a SQLite database or a MySQL database (assuming this matters) and get its data from there. I am guessing the table "tvlibrary.channel will provide the data you are looking for to determine the radio and TV channels. There is a column in the tvlibrary.channel called isTV and one called isRadio. They return values of b'0' for "No' and b'1' for "Yes". You could for instance say (I am no programmer this just makes logical sense): Count = tvlibrary.channel where isTV == b'1' then (Whatever you do with it for myVoice maybe something like) Write myVoice.db3 tvchannels.total == Count For i in Count Add entry to tvchnnels.list (Whatever you need to collect here maybe Channel id, Channel Name, etc.) Then you could do the same with Radio. I wish I could actually do this myself but I am not even close yet. I can help with testing it and figuring out the logic though. If anyone can take this up and add it that would be great. For now do you think there would be any harm in manually editing my P:\Program Files\Team MediaPortal\MediaPortal\database\TVDatabaseV21.db3 and RadioDatabase4.db3 to reflect what is in my MySQL database so your program will pull the correct information? I do not know if any other file references this but if it does it is wrong anyway so I edited TVDatabaseV21.db3 and added my channels manually. Now I can verbally change the channel past channel 13!!! Guess I will do the radio database next. Hopefully someone can code a fox for this setup. I know I can't be the only person running into this. I have just begun to look at C# but I know nothing. I looked at the source and can tell a little about what is going on but I have no clue how to create an if statement to check for tv server and then to check for database type and then to get the data from the database and then use it instead of what is used for a client only installation. If anyone wants me to post anymore information or test anything to solve this please let me know. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
myVoice Open Beta
Contact us
RSS
Top
Bottom