NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Legacy (v4.x and earlier) v
« Previous 1 … 268 269 270 271 272 … 433 Next »
GB-PVR => NPVR migration; video library missing episode ID information

GB-PVR => NPVR migration; video library missing episode ID information
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,199
Threads: 958
Joined: May 2006
#11
2013-02-12, 12:20 AM
I wrote a utility to help browse these fields that I guess only I use http://forums.nextpvr.com/showthread.php...post443946

Code:
select name,XmlLookup(event_details,"/Event/UniqueId") from scheduled_recording

Martin
Braklet
Offline

Senior Member

Posts: 532
Threads: 60
Joined: Sep 2006
#12
2013-02-12, 05:51 PM
sub Wrote:What are you using to look in the npvr.db3? It sounds like it's not showing you all the data in that column. I'm guessing it's all there. The unique id is later in that data.

Quite possible, although I've had good luck with SQLite Maestro.

The column does show some non-printable characters for each imported recording as well, that could be throwing off Maestro.
Braklet
Offline

Senior Member

Posts: 532
Threads: 60
Joined: Sep 2006
#13
2013-02-12, 06:13 PM
Thanks for the utility, Martin!

I copied XMLLookup.exe to my NPVR data directory (C:\Documents and Settings\All Users\Application Data\NPVR, this is 32 bit XP Pro) along with System.Data.SQLite.dll. Fired up the tool, copied your query quoted above into the window, hit Button1, and got a "Unable to open the database file" popup. npvr.db3 is in there, not sure what's up?
Braklet
Offline

Senior Member

Posts: 532
Threads: 60
Joined: Sep 2006
#14
2013-02-12, 06:34 PM
I pulled down the SQLite shell from sqlite.org and used my faulty memory to output the contents of my scheduled_recordings table. It appears OK, although the whitespace and non printable characters seem to throw SQLite Maestro for a loop. Here's an example of one row:
Code:
||1|2|0||||
2408|Off the Air|E:\Video\GB-PVR\Off the Air\Nightmares.mpg|2|2012-12-22 09:00:0
0|2012-12-22 09:15:00|0|0|0|176 TOON|    <Event>
      <OID>0</OID>
      <Title>Off the Air</Title>
      <SubTitle>Nightmares</SubTitle>
      <Description></Description>
      <ChannelOID>0</ChannelOID>
      <StartTime>2012-12-22T09:00:00.0000000Z</StartTime>
      <EndTime>2012-12-22T09:15:00.0000000Z</EndTime>
  <UniqueID>EP014135410007</UniqueID>
    </Event>

So I think sub's updated DLL did what I wanted, at least I hope so. Won't know for sure unless I run a new test from scratch or continue with daily EPG updates to see if repeats keep getting scheduled.

Thanks, all.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,199
Threads: 958
Joined: May 2006
#15
2013-02-12, 06:40 PM
Braklet Wrote:Thanks for the utility, Martin!

I copied XMLLookup.exe to my NPVR data directory (C:\Documents and Settings\All Users\Application Data\NPVR, this is 32 bit XP Pro) along with System.Data.SQLite.dll. Fired up the tool, copied your query quoted above into the window, hit Button1, and got a "Unable to open the database file" popup. npvr.db3 is in there, not sure what's up?

Sorry, it needs to be placed in the Program Files NPVR folder with but it looks like you got it.

Martin
Braklet
Offline

Senior Member

Posts: 532
Threads: 60
Joined: Sep 2006
#16
2013-02-12, 07:03 PM
Tried the Program Files/NPVR directory too, but still got the "Unable to open the database file" popup. But yeah, I think the event data were migrated over with the new DLL.
ElihuRozen
Offline

Senior Member

Massachusetts, USA
Posts: 514
Threads: 51
Joined: Apr 2006
#17
2013-02-12, 07:44 PM
Braklet Wrote:Tried the Program Files/NPVR directory too, but still got the "Unable to open the database file" popup. But yeah, I think the event data were migrated over with the new DLL.

From Martin's other thread:
mvallevand Wrote:lets you test your SQL (hard coded to the Win7 default)

In this thread you indicated the WinXP default for your data directory.
Tuners: SD HDHR Prime (HDHR3-CC). SD HDHR Connect Quatro Tuner (HDHR5-4US) - only QAM.  EXVIST H.265 Encoder - capturing cable box.
Client: Odroid-N2 running knewc on KODI - connected via MoCA.
EPG: SchedulesDirect
Provider: Verizon Fios
Server: Dell XPS 8700 with Windows 10
Braklet
Offline

Senior Member

Posts: 532
Threads: 60
Joined: Sep 2006
#18
2013-02-13, 02:23 PM
It appears that UID is present in my imported SCHEDULED_RECORDINGS.Event columns, but NPVR is still scheduling duplicate recordings after EPG update.

How does NPVR determine if a recording is a duplicate?

I hope there are some simple database tweaks I can perform to ensure that NPVR properly detects duplicates in my imported GB-PVR recordings.

TIA!
Graham
Offline

Posting Freak

UK
Posts: 4,058
Threads: 102
Joined: Dec 2005
#19
2013-02-13, 03:22 PM
Braklet Wrote:How does NPVR determine if a recording is a duplicate?

There is a Unique_id in the epg_event table. It's value comes from Schedules Direct (if used) or is generated by NextPVR ...

http://forums.nextpvr.com/showthread.php...post450565

http://forums.nextpvr.com/showthread.php...post451625
Braklet
Offline

Senior Member

Posts: 532
Threads: 60
Joined: Sep 2006
#20
2013-02-13, 05:55 PM
I just took a closer look at npvr.db3 using SQLite Maestro. The output attenuation that kept me from seeing any imported Unique ID data has to do with the fact that the SCHEDULED_RECORDINGS.event_details column shows up typed as varchar(50), even though it ends up longer than that. I tried changing the definition to varchar(500) and was able to see all the data.

This reveals another issue: the recordings import preserves all the event strings, so that recording title, subtitle etc. show up as expected. But no corresponding rows are created in the EPG_EVENT table and the embedded event OID is left 0. So as it stands, NPVR can't detect imported duplicates.

I'm not too handy with SQL queries but I guess I'll have to learn. Wink
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (4): « Previous 1 2 3 4 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Add Series/Episode Info to Recording Metadata andrewj 2 1,196 2023-11-20, 03:42 PM
Last Post: sub
  Missing Audio NND 39 9,451 2023-06-24, 01:42 PM
Last Post: mvallevand
Information Audio Video Sync Fixed with AC3Filter! gearsofwoe 0 1,142 2022-11-18, 04:36 AM
Last Post: gearsofwoe
  npvr is not responding johndutcher 3 1,590 2022-05-05, 07:57 PM
Last Post: sub
  NPVR 4.2.4 Video Library No Longer Shows folder.jpg Lao Pan 12 4,110 2022-04-14, 04:33 AM
Last Post: Antmannz
  nPVR Continually Wakes PC bfos 23 11,706 2022-02-17, 03:48 PM
Last Post: sub
  Can't find tuner filter in NPVR 4.05 on old XP machine (eee 701) with RTL2832U iamanotheruser 3 1,842 2022-01-03, 04:45 AM
Last Post: mvallevand
  ITV/BBC HD and EPG missing from scan and update angelisle 16 4,453 2021-08-26, 11:45 AM
Last Post: NumberFive
  Missing Audio - Switching from MPEG-1 to AC3 and vice versa NumberFive 15 4,646 2021-05-06, 01:57 AM
Last Post: raymondjpg
  Streaming Services with NPVR tesla1886 4 2,859 2021-01-04, 02:58 AM
Last Post: tesla1886

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

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

Linear Mode
Threaded Mode