NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 17 18 19 20 21 … 93 Next »
NPVR database questions

 
  • 0 Vote(s) - 0 Average
NPVR database questions
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,175
Threads: 958
Joined: May 2006
#11
2010-07-25, 05:59 PM
Ok, if you every think you can "complete" in the future to allow this would help so consider it a wishlist I guess. I'm liking NEWA's search but I end up doing deletes after recording, and wasting a tuner so this would help

Martin
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,175
Threads: 958
Joined: May 2006
#12
2010-07-26, 11:09 PM
The ratings files seems to be overloaded and can either be film star-rating or something else. Most likely NPVR just takes the last one. This one I have have as "Adult Situations"

Code:
<programme start="20100731010000 +0000" stop="20100731023000 +0000" channel="28460374">
    <title lang="en">Paranormal Activity</title>
    <duration units="minutes">90</duration>
    <desc lang="en">A young couple (Katie Featherston, Micah Sloat) move into their first new home but are disturbed by what appears to be a supernatural presence that is most active at night.</desc>
    <episode-num system="dd_progid">MV002635320000</episode-num>
    <credits>
      <actor>Katie Featherston</actor>
      <actor>Micah Sloat</actor>
      <actor>Amber Armstrong</actor>
      <actor>Mark Fredrichs</actor>
      <actor>Ashley Palmer</actor>
      <director>Oren Peli</director>
    </credits>
    <date>2007</date>
    <premiere />
    <video>
      <quality>HD Simulcast</quality>
      <aspect>16:9</aspect>
    </video>
    <audio>
      <stereo>stereo</stereo>
    </audio>
    <subtitles type="teletext" />
    <rating system="MPAA">
      <value>R</value>
      <icon src="C:\bin32\epg\Common\RatingIcons\MPAA\R.gif" />
    </rating>
    <star-rating>
      <value>3.0/4</value>
      <icon src="C:\bin32\epg\RatingIcons\Star\3.0.gif" />
    </star-rating>
    <rating system="advisory">
      <value>Language</value>
    </rating>
    <rating system="advisory">
      <value>[b]Adult Situations[/b]</value>
    </rating>
    <category>Movie</category>
    <category>Horror</category>
    <category>Suspense</category>
  </programme>

Is there any way to tell the XMLTV import to prefer <star-rating> if it is available? Also I'd assume that the system="MPAA" attribute would be the most appropriate content rating if a filter is required.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#13
2010-07-27, 12:43 AM
I dont really have any answer for you on that at this stage. I'd need to do some more work in future. There seemed to be too many variations to the types of data stored in those fields in the wider world, so I largely ignored it.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,175
Threads: 958
Joined: May 2006
#14
2010-07-27, 02:08 AM
No real harm I guess, this just calls for some xsl practise while pre-processing

Code:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="http://www.w3.org/1999/xhtml">

<xsl:output method="xml" encoding="UTF-8" indent="yes" />
    <xsl:template match="node()|@*">
      <xsl:copy>
         <xsl:apply-templates select="node()|@*"/>
      </xsl:copy>
    </xsl:template>
    <xsl:template match="rating"/>
</xsl:stylesheet>

Martin
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,175
Threads: 958
Joined: May 2006
#15
2010-08-05, 11:47 AM (This post was last modified: 2010-08-05, 12:19 PM by mvallevand.)
In the SCHEDULED_RECORDING table, do zero values for pre and post padding (probably not) and quality (maybe) get set at defaults at time of recording service startup or what do they mean?

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#16
2010-08-05, 04:34 PM
zero values for pre and post padding effectively means 'dont use any pre or post padding for this recording'.

zero for quality effectively means use the default bitrate (for the device). This is ignored for digital devices though, since the bitrate is always whatever the broadcaster supplies.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,175
Threads: 958
Joined: May 2006
#17
2010-08-08, 03:57 AM
sub Wrote:Sorry - I meant for upcoming recordings. Completed recordings are left in the database.

I don't know if this is a design change or not (hopefully it's a bug), but it looks like Completed files are now removed from the database. Among other things I was working on have the season episode fields available for the file renamer that I am conceptualizing.

Martin
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,175
Threads: 958
Joined: May 2006
#18
2010-08-08, 05:08 PM
Sub further to my previous post was this a design change?

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#19
2010-08-08, 05:49 PM
mvallevand Wrote:I don't know if this is a design change or not (hopefully it's a bug), but it looks like Completed files are now removed from the database.
When are they being removed? Pending recordings are removed and recreated when the epg is updated. When I updated the epg just now, all my completed recordings were still there.

Maybe what you saw was the logic that auto removes recordings from the database if the file has been deleted from disk?
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,175
Threads: 958
Joined: May 2006
#20
2010-08-08, 05:58 PM
No, maybe my command is wrong in my xmltv import. I use

"C:\Program Files\NPVR\NextPVR.exe" -updateepgonly

The lowest oid in epg_event is larger than the OID in the XML for any of my scheduled recording saved files, and I cannot find them by searching the title. They are all on disk, except one failure reason that the service wasn't started.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (3): « Previous 1 2 3 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,486 2021-03-11, 03:59 PM
Last Post: mvallevand
  Plugins and NPVR. Where do we start? sub 80 70,259 2020-11-26, 10:02 PM
Last Post: mandai
  Test/Development environment for npvr.db3 scJohn 10 4,594 2020-09-04, 09:14 PM
Last Post: scJohn
  How to extract M3U8 and get matching XMLTV guide data from NPVR almightyj 0 3,559 2018-10-23, 07:24 AM
Last Post: almightyj
  ios app to control npvr ui idea jnbooker15 4 3,726 2015-09-21, 10:19 PM
Last Post: sub
  ios app to control npvr ui idea jnbooker15 0 2,540 2015-09-21, 06:39 PM
Last Post: jnbooker15
  Couple of questions about hacking npvr.db3 drmargarit 6 4,366 2014-09-08, 02:22 AM
Last Post: sub
  Questions about Scraping from thetvdb and themoviedb craigrs84 0 2,559 2014-08-19, 05:30 PM
Last Post: craigrs84
  Delete recordings from database but not from disk? spinnaker 8 3,946 2013-10-26, 10:51 PM
Last Post: spinnaker
  high res (256x256+) npvr icon? reven 15 6,094 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