NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 12 13 14 15 16 … 93 Next »
Expanding NPVR.db3

 
  • 0 Vote(s) - 0 Average
Expanding NPVR.db3
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,096
Threads: 957
Joined: May 2006
#1
2011-09-18, 11:21 PM
Sub would it be problematic if I was to add my own node to event_details in the SCHEDULED_RECORDINGS table after a file has been recorded? I'd like to be able to update Season and Episode to valid numbers, plus I'd like to add a new node to show that I have searched it.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#2
2011-09-18, 11:25 PM
I'm not that keen on others updating the data (or structure) in the npvr.db3, but you can probably do it though. I cant guarantee the data isnt lost during various activities though, like exporting/importing etc.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,096
Threads: 957
Joined: May 2006
#3
2011-09-19, 12:24 AM
Thanks, I would expect it would be lost too and hope the utilities write event_details in there entirety.

Martin
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#4
2011-09-19, 07:06 PM
sub Wrote:I'm not that keen on others updating the data (or structure) in the npvr.db3, but you can probably do it though. I cant guarantee the data isnt lost during various activities though, like exporting/importing etc.

I'd added a couple of extra tables - that don't interact in any way shape or form with the rest of the database - for my Videos+ plugin. I only put them there because, well, it was easy to do so. Your API already talks to that database and handles setting up the connection and so on. It meant I didn't even need the sqlite libraries as part of my project.

However, if you'd rather I didn't do that then I can put them in their own separate database instead.

And blow you a big raspberry while I'm at it Big Grin

Iain
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#5
2011-09-19, 07:43 PM
While I'm not fond of the idea, I can understand it is most straight forward thing to do, so I wont ask you to remove them. Definitely dont modify the structure of existing tables though, and dont do anything that'll hurt performance, like changing indexes or adding triggers on the existing tables.
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#6
2011-09-19, 09:06 PM
Thanks sub. On further thought though, I think I will remove them and give them a home of their own. They're probably the last thing you'd want to see when debugging a DB file someone's sent you.

Iain
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,096
Threads: 957
Joined: May 2006
#7
2011-09-20, 02:50 AM
Sub, when sorting recording for an alpha sort in Recordings, I assume the key is the name field or date. Is there are secondary key or is the order of episodes displayed however sqlite wants to optimize it?

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#8
2011-09-20, 03:28 AM
Its sorted in code, not using criteria sort criteria in the SQL. From memory, yes its name and date.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,096
Threads: 957
Joined: May 2006
#9
2011-09-21, 05:16 PM
Sub, next question, in processing the EPG XML it looks like NPVR parses the sub-title data and removes a trailing dot (but not all trailing dots) for some reason. Is there any other odd parsing that goes on? It is not parsing it to make it filename friendly ? and : are in there.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#10
2011-09-21, 05:42 PM
mvallevand Wrote:Sub, next question, in processing the EPG XML it looks like NPVR parses the sub-title data and removes a trailing dot (but not all trailing dots) for some reason.
I dont remember it doing that, except for when it's deciding on a filename for a recording.

Quote:Is there any other odd parsing that goes on? It is not parsing it to make it filename friendly ? and : are in there.
Nothing specific springs to mind, but it does do quite a bit of manipulation of the characters when constructing a valid filename when starting a recording.
« 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
  Way to tell programmatically if channel load in from NPVR has finished... gdogg371 3 2,444 2021-03-11, 03:59 PM
Last Post: mvallevand
  Plugins and NPVR. Where do we start? sub 80 69,968 2020-11-26, 10:02 PM
Last Post: mandai
  Test/Development environment for npvr.db3 scJohn 10 4,501 2020-09-04, 09:14 PM
Last Post: scJohn
  How to extract M3U8 and get matching XMLTV guide data from NPVR almightyj 0 3,527 2018-10-23, 07:24 AM
Last Post: almightyj
  ios app to control npvr ui idea jnbooker15 4 3,687 2015-09-21, 10:19 PM
Last Post: sub
  ios app to control npvr ui idea jnbooker15 0 2,522 2015-09-21, 06:39 PM
Last Post: jnbooker15
  Couple of questions about hacking npvr.db3 drmargarit 6 4,332 2014-09-08, 02:22 AM
Last Post: sub
  high res (256x256+) npvr icon? reven 15 5,999 2013-09-01, 05:13 AM
Last Post: psycik
  trying to fake npvr database for unit tests reven 3 2,293 2013-05-20, 08:53 AM
Last Post: reven
  Multiple genres in npvr.db3 bgowland 5 2,878 2013-04-16, 09:53 PM
Last Post: ACTCMS

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

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

Linear Mode
Threaded Mode