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
markm
Offline

Member

Posts: 86
Threads: 16
Joined: Feb 2004
#1
2005-04-02, 11:26 PM
There's a perl script available for MythTV to grab the PPV listings for Dish Network, and insert it into Myth's guide.

I'm trying to modify this for gbpvr, and I'm running into a few questions.

The method this script uses to do it's updates on the DB, is to basically flush all the existing shows, and re-insert them each time it's run. I think if I were to do that, I'd break any scheduled recordings for those shows.

From what I can gather, scheduled recordings are stored in recording_schedule table, and reference the program's oid in the programme table. If I drop and re-insert the show, it's oid will change.

My next approach was going to be to do the insert if it doesn't exist route, which is probably going to be horribly slow.

There must be a better way, I'm just drawning a blank.

How does gbpvr manage this when it does an EPG update?
How/when does old EPG data get dropped from the database?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#2
2005-04-02, 11:51 PM
Quote:How does gbpvr manage this when it does an EPG update?
GB-PVR check if the show exists prior to insert. Its not that slow, and it usually doesnt matter if its slow anyway (normally an unattended process).

Quote:How/when does old EPG data get dropped from the database?
Show information that is more than a day or so old, and no longer referenced by recording and deleted during the EPG update process.
markm
Offline

Member

Posts: 86
Threads: 16
Joined: Feb 2004
#3
2005-04-02, 11:55 PM
Quote:Show information that is more than a day or so old, and no longer referenced by recording and deleted during the EPG update process.

So the programs I add will get flushed by gbpvr when it does it's update, and I won't have to worry about it? I'm assuming it's simply purging based on either start or end date.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#4
2005-04-02, 11:59 PM
yes, thats correct.

Be warned though, the EPG update process is also responsible for scheduling season recordings etc.
markm
Offline

Member

Posts: 86
Threads: 16
Joined: Feb 2004
#5
2005-04-03, 01:37 AM
I don't think season recording should affect me. The programs I'm inserting aren't likely to be recorded in a recurring fashion.

Now I'm just stuck on why I can't do a query against a date in access. I'm doing something stupid, I just can't figure out what. As best I've determined so far, access doesn't use the normal SQL date string of yyyy-mm-dd hh:mmConfuseds. But even when I convert it to the access format, it still throws an error. :mad:

I'm generating query strings like:
Code:
select oid from programme where channel_oid = 128 and start_time = #04/01/2005 15:00:00#

I keep getting a "COUNT field incorrect" error.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#6
2005-04-03, 01:39 AM
I dont use date strings for my queries, so I'm not sure what the format is supposed to be. It might have something to do with no quotes around the date.
markm
Offline

Member

Posts: 86
Threads: 16
Joined: Feb 2004
#7
2005-04-03, 01:45 AM
How do you check to see if the program exists before you insert it? I thought you might use the unique_identifier, but that's not unigue Smile
KingArgyle
Offline

Posting Freak

Posts: 1,271
Threads: 95
Joined: Nov 2004
#8
2005-04-03, 01:47 AM
You can also use the access CDate function.

start_time = Cdate('2004-12-04')
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#9
2005-04-03, 01:47 AM
I use dates in my queries, but I use ADO.NET parameters, so I'm never actually converting it to a string which seems to be your problem.
jrockintuitive
Offline

Senior Member

Posts: 292
Threads: 19
Joined: Dec 2004
#10
2005-04-03, 05:28 AM
sub, can you post some code with ado.net parameters for dates.

I tried with guide2j and failed miserably.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to best verify success when adding a recurring recording drmargarit 1 2,882 2017-03-02, 03:13 PM
Last Post: mvallevand
  Adding a Subdirectory for fanart Northpole 4 2,392 2011-09-01, 11:40 AM
Last Post: mvallevand
  Problem Adding Reference ohowson 1 1,404 2006-11-16, 02:14 PM
Last Post: ohowson
  Adding designer capability to class??? bgowland 0 1,254 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