NextPVR Forums
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 18 19 20 21 22 … 93 Next »
NPVR database - why so stringy with the fields?? :0)

 
  • 0 Vote(s) - 0 Average
NPVR database - why so stringy with the fields?? :0)
carpeVideo
Offline

Posting Freak

Posts: 824
Threads: 23
Joined: Dec 2006
#1
2010-09-21, 01:13 AM
I have been poking around the new database structure to update guidePlus and vidImport.

One thing they both do is a query on the database to get a list of upcoming or previous recordings that are TV series - for renaming and adding extra EPG info etc.

This was a very simple query before - Just look at recordings joined with the epg where the unique_ID starts with EP (at least with schedules direct data)

Now already recorded shows save their data in a field embedded in XML and these recordings have lost their unique IDs and a host of other data, so I would have to pull the epg_ID out of the XML link it the EPG table and hope that it is still in the there, then check if it is a series.

So, I guess my wish for this task is to see the unique program ID saved as a field for scheduled_recordings (which would also allow easily allow not recording dups again as well).

But in general it begs the question why so stingy with fields. If you don't want a titles data in the EPG after its time has passed why not just another table (completed_events/scheduled_events?) with a full set of fields that the scheduled_recordings could link to. Just my two cents but it seems the stored XML offers little in the way of advantage and limits what the database can do.

Thanks for all your effort and the new toy BTW!!
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 102,402
Threads: 742
Joined: Nov 2003
#2
2010-09-21, 01:35 AM
GBPVR had endless problems caused by the requirement to leave the details in the PROGRAMME table for any shows linked to a scheduled recording, and it made things awkward for importing recordings where a matching channel didnt exist, when the user wanted to delete channels but they were referred to via the RECORDING SCHEDULE link to the PROGRAMME table. ie, the database would end up listings from today for a week or so, then just a small splattering of old listings in the past that were used for a recording at the time.

The new scheme is much better and does away with these problems by storing a cached copy of the show details in the recording, including the channel name etc, allowing recordings to exist in the database even when all the listings or channels are deleted, simplify importing etc.

Sorry, but I have no plans to change it back to the old problematic scheme.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 45,336
Threads: 868
Joined: May 2006
#3
2010-09-21, 01:41 AM
I thought I was the only one. I would love to have all the fields copied to matching fields after a recording. They should be able to coexist with the xml field with minimum impact of size. Not recording duplicates cold be implemented with simple logic based on a new status code and the unique ID. It's true that not all xmltv sources provide what is available here but it would be great to have more flexibility.

Martin
carpeVideo
Offline

Posting Freak

Posts: 824
Threads: 23
Joined: Dec 2006
#4
2010-09-21, 01:45 AM
sub Wrote:GBPVR had endless problems caused by the requirement to leave the details in the PROGRAMME table for any shows linked to a scheduled recording, and it made things awkward for importing recordings where a matching channel didnt exist, when the user wanted to delete channels but they were referred to via the RECORDING SCHEDULE link to the PROGRAMME table. ie, the database would end up listings from today for a week or so, then just a small splattering of old listings in the past that were used for a recording at the time.

The new scheme is much better and does away with these problems by storing a cached copy of the show details in the recording, including the channel name etc, allowing recordings to exist in the database even when all the listings or channels are deleted, simplify importing etc.

Sorry, but I have no plans to change it back to the old problematic scheme.

I understand the issue from before - that is why I suggested keeping a new copy in another table as fields not XML (or as fields directly in scheduled_recordings), it would solve the same problem without creating others because there would be no channel link. The problem before was not that you didn't use XML , it was that there was no copy once a recording was done that could be decoupled from a channel.
or
If not can you at least keep the unique ID in the XML - then a like '%<unique_ID>EP%' would do the job although that is a long query for sqllite.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 102,402
Threads: 742
Joined: Nov 2003
#5
2010-09-21, 01:48 AM
carpeVideo Wrote:If not can you at least keep the unique ID in the XML - then a like '%<unique_ID>EP%' would do the job although that is a long query for sqllite.
I do intend to do this when I add built in Schedules Direct support.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Way to tell programmatically if channel load in from NPVR has finished... gdogg371 3 1,248 2021-03-11, 03:59 PM
Last Post: mvallevand
  Plugins and NPVR. Where do we start? sub 80 59,549 2020-11-26, 10:02 PM
Last Post: mandai
  Test/Development environment for npvr.db3 scJohn 10 2,281 2020-09-04, 09:14 PM
Last Post: scJohn
  Seeking explanation for recurring schedule fields timeslotStart and timeeslotEnd scJohn 4 1,355 2020-07-14, 10:13 PM
Last Post: scJohn
  How to extract M3U8 and get matching XMLTV guide data from NPVR almightyj 0 2,138 2018-10-23, 07:24 AM
Last Post: almightyj
  ios app to control npvr ui idea jnbooker15 4 2,809 2015-09-21, 10:19 PM
Last Post: sub
  ios app to control npvr ui idea jnbooker15 0 2,025 2015-09-21, 06:39 PM
Last Post: jnbooker15
  Couple of questions about hacking npvr.db3 drmargarit 6 3,431 2014-09-08, 02:22 AM
Last Post: sub
  Delete recordings from database but not from disk? spinnaker 8 2,748 2013-10-26, 10:51 PM
Last Post: spinnaker
  high res (256x256+) npvr icon? reven 15 4,170 2013-09-01, 05:13 AM
Last Post: psycik

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

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

Linear Mode
Threaded Mode