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
Text to Speech.......Make MediaPortal Talk
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="Inker" data-source="post: 23672" data-attributes="member: 10541"><p>hi clodo,</p><p></p><p>depends on what you mean by "retrieving this kind of information". obviosly you can just get the current time and date with .net datetime.now methods.</p><p></p><p>as for upcoming recordings, its all saved in the TVDatabaseV21.db3. take a look at the database methods in the source. should be very easy to find out the next recordings. as im sure you know, you can just pass in an sql query and get back a result set. so just order the recordings by startime (which also includes the date (format is like this: 20051025175900) and then limit the results to be greater than the current date time.</p><p></p><p>actually, the sql should look something like this: </p><p>[code]select recording.strProgram, recording.iStartTime, channel.strChannel </p><p>from recording, channel</p><p>where recording.iStartTime > "right now" // have to create that string</p><p>and channel.idChannel = recording.idChannel</p><p>order by recording.iStartTime</p><p>limit 1;[/code]</p><p></p><p>yeah, that works <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p>so that gives you back a resultset with the next recording.</p><p></p><p>would be glad to see this improve <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p></blockquote><p></p>
[QUOTE="Inker, post: 23672, member: 10541"] hi clodo, depends on what you mean by "retrieving this kind of information". obviosly you can just get the current time and date with .net datetime.now methods. as for upcoming recordings, its all saved in the TVDatabaseV21.db3. take a look at the database methods in the source. should be very easy to find out the next recordings. as im sure you know, you can just pass in an sql query and get back a result set. so just order the recordings by startime (which also includes the date (format is like this: 20051025175900) and then limit the results to be greater than the current date time. actually, the sql should look something like this: [code]select recording.strProgram, recording.iStartTime, channel.strChannel from recording, channel where recording.iStartTime > "right now" // have to create that string and channel.idChannel = recording.idChannel order by recording.iStartTime limit 1;[/code] yeah, that works :-) so that gives you back a resultset with the next recording. would be glad to see this improve :-) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Text to Speech.......Make MediaPortal Talk
Contact us
RSS
Top
Bottom