NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 73 74 75 76 77 … 93 Next »
Adding to the EPG

 
  • 0 Vote(s) - 0 Average
Adding to the EPG
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,708
Threads: 767
Joined: Nov 2003
#11
2005-04-03, 05:51 AM
The only trick to using dates with ADO.NET is making sure you've truncated off any seconds:

// set start date
saveScheduledRecordingCommand.Parameters[7].Value = new DateTime(scheduledRecording.getStartTime().Year, scheduledRecording.getStartTime().Month, scheduledRecording.getStartTime().Day, scheduledRecording.getStartTime().Hour, scheduledRecording.getStartTime().Minute, scheduledRecording.getStartTime().Second); saveScheduledRecordingCommand.Parameters[7].DbType = System.Data.DbType.DateTime;
markm
Offline

Member

Posts: 86
Threads: 16
Joined: Feb 2004
#12
2005-04-04, 02:20 PM
Is unique_identifier used for anything?

I'm going to make a few more attempts at getting the date sorted out, but if I can't, I'm thinking of just sticking an md5 hash in the unique_identifier field and using the to query against for updates.
markm
Offline

Member

Posts: 86
Threads: 16
Joined: Feb 2004
#13
2005-04-05, 12:18 AM
CDate() was what I needed to make this work, thanks for the tip on that.

Turns out unique_identifier is also needed, gbpvr doesn't seem to like it if that's empty, so I filled it with an MD5 hash of the channel and start time. Had I known this field couldn't be left empty, I could have saved myself alot of grief and used this hash in the first place Smile
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): « Previous 1 2


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to best verify success when adding a recurring recording drmargarit 1 2,817 2017-03-02, 03:13 PM
Last Post: mvallevand
  Adding a Subdirectory for fanart Northpole 4 2,318 2011-09-01, 11:40 AM
Last Post: mvallevand
  Problem Adding Reference ohowson 1 1,373 2006-11-16, 02:14 PM
Last Post: ohowson
  Adding designer capability to class??? bgowland 0 1,232 2006-08-30, 05:31 PM
Last Post: bgowland

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode