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 … 61 62 63 64 65 … 433 Next »
Recording imports

Recording imports
Bobins
Offline

Posting Freak

UK (North West)
Posts: 1,232
Threads: 140
Joined: Sep 2004
#1
2018-03-05, 09:08 PM
I'm trying to manually import a number of video files into the database but failing to get it right.
The last template I created for the required fields doesn't seem to work anymore as the database has obviously progressed.
I tried mimicking the fields from a recording-backup.xml but I must be getting values or syntax wrong because it doesn't create the correct populated entries.

Sub (or anyone else who knows). Can you advise which fields need to be populated, which are optional, which are created by NPVR on import and what effect each field has on the database (e.g. I see two entries for every recording start & end time..... why?)
I see the SubTitle field has changed / disappeared?

An example dump below.

- <recording>
<oid>5681</oid>
<name>Piers Morgan's Life Stories</name>
<channel>ITV HD</channel>
<filename>R:\Recordings\Piers Morgans Life Stories\Piers Morgans Life Stories_20180303_21502245.ts</filename>
<status>READY</status>
<startTime>2018-03-03T21:49:02.0000000Z</startTime>
<endTime>2018-03-03T22:48:00.0000000Z</endTime>
- <Event>
<OID>2690048</OID>
<Title>Piers Morgan's Life Stories</Title>
<SubTitle />
<Description>Pamela Anderson: Pamela Anderson reflects on her career and personal life, including her first husband's imprisonment for spousal abuse and her relationship with Julian Assange. [S,HD]</Description>
<ChannelOID>7151</ChannelOID>
<StartTime>2018-03-03T21:50:00.0000000Z</StartTime>
<EndTime>2018-03-03T22:45:00.0000000Z</EndTime>
<FirstRun>true</FirstRun>
<DVBServiceEventID>14975</DVBServiceEventID>
<DVBTableVersion>9</DVBTableVersion>
- <Genres>
<Genre>News / Current Affairs</Genre>
</Genres>
<UniqueID>New: Piers Morgan's Life Stories/1001339462</UniqueID>
</Event>
</recording>


Thanks.

Ray.
NPVR Version= 7.0.2.250621
Intel i5 Ten Core 14400 + 16GB DDR5 in Gigabyte B760 AX Motherboard
Windows 11 Pro 64bit
TBS-6902 dual DVB-S tuner
TBS-6205 quad DVB-T tuner
500Gb System Disk (M2 Nvme SSD)
4Tb Media Store (2 x 2Tb M2 Nvme SSD Spanned)

Raspberry Pi3 B+, Pi4B (OSMC) & Pi5 (XBian) running Kodi v21.1
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#2
2018-03-05, 09:36 PM
You pretty much only need "name", "channel", "filename", "startTime" and "endTime". The "oid" is ignored, and a new one of those is allocated when imported. A manual recording made by NextPVR only has those fields. The startTime/endTime here are the actual time that the recording covered.

If it was a recording made from the TV Guide, it can also contain an embedded copy of the show information it is associated with - this is the <Event> node (and the fields it contains like title, subtitle, show start and end time, genre etc). The show start time and end time are the time the actual show was scheduled to air. ie, not always the same as the recording time (which could include padding etc).

Quote:I see the SubTitle field has changed / disappeared?
If it knows this info, then it's included. In the example you posted above, the subtitle isn't known, so it's got an empty subtitle node.
Bobins
Offline

Posting Freak

UK (North West)
Posts: 1,232
Threads: 140
Joined: Sep 2004
#3
2018-03-05, 09:42 PM
I think some of my problems may be the syntax difference between subtitle and SubTitle, title & Title etc.
The field names seem to have changed from the template a created for a few NVPR versions ago (I don't need to import files very often except when the wife says "I missed the last series of xxxx can you get them for me" Rolleyes )

I'll try again.

Thanks Sub... latest release is looking pretty good overall.
NPVR Version= 7.0.2.250621
Intel i5 Ten Core 14400 + 16GB DDR5 in Gigabyte B760 AX Motherboard
Windows 11 Pro 64bit
TBS-6902 dual DVB-S tuner
TBS-6205 quad DVB-T tuner
500Gb System Disk (M2 Nvme SSD)
4Tb Media Store (2 x 2Tb M2 Nvme SSD Spanned)

Raspberry Pi3 B+, Pi4B (OSMC) & Pi5 (XBian) running Kodi v21.1
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#4
2018-03-06, 02:37 AM
Bobins Wrote:I think some of my problems may be the syntax difference between subtitle and SubTitle, title & Title etc.
It's a bit unfortunately there is some attributes in all lower case, and some in mixed case. It's not ideal, but this just had to be the case when I decided to combine two bits of info for the export, and they just happened to use slightly different formatting in their respective parts of the application.

Hopefully in the nicely layed out example below, you can clearly see the main recording attributes (like name/startTime/endTime/filename etc), and the embedded <Event> node (in MixedCase, like Title/Subtitle/StartTime/EndTime etc). If it's a manual recording, you won't have this embedded <Event> node.

Code:
<recording>
    <oid>1913</oid>
    <name>Breakfast</name>
    <channel>TVNZ 1</channel>
    <filename>D:\Temp\Breakfast\Breakfast_20180305_06000900.ts</filename>
    <status>READY</status>
    <startTime>2018-03-04T18:23:04.0000000Z</startTime>
    <endTime>2018-03-04T18:23:39.0000000Z</endTime>


    <!-- embedded copy of EPG guide event -->
    <Event>
      <OID>8704420</OID>
      <Title>Breakfast</Title>
      <SubTitle>Monday 4th of March</SubTitle>
      <Description>Start your day off right with Hayley Holt, Jack Tame and the Breakfast team, bringing you the latest in news, sports and weather.</Description>
      <ChannelOID>53404</ChannelOID>
      <StartTime>2018-03-04T17:00:00.0000000Z</StartTime>
      <EndTime>2018-03-04T20:00:00.0000000Z</EndTime>
      <FirstRun>true</FirstRun>
      <DVBServiceEventID>291</DVBServiceEventID>
      <DVBTableVersion>4</DVBTableVersion>
      <UniqueID>Breakfast/10505394</UniqueID>
    </Event>


  </recording>




Quote:The field names seem to have changed from the template a created for a few NVPR versions ago
I'm pretty sure they haven't changed in years. You will get slight differences depending on if they're manual recordings (simple timers) or guide based (with EPGEvent node, which can have optional values depending on info available.)
Bobins
Offline

Posting Freak

UK (North West)
Posts: 1,232
Threads: 140
Joined: Sep 2004
#5
2018-03-06, 10:33 AM
Thanks Sub. When I said "field names changed", I was simply referring to the syntax Uppercase/lowercase confusion.
Having realised the problem, fixing my case syntax errors has worked. Files imported and Wife happy :-)
NPVR Version= 7.0.2.250621
Intel i5 Ten Core 14400 + 16GB DDR5 in Gigabyte B760 AX Motherboard
Windows 11 Pro 64bit
TBS-6902 dual DVB-S tuner
TBS-6205 quad DVB-T tuner
500Gb System Disk (M2 Nvme SSD)
4Tb Media Store (2 x 2Tb M2 Nvme SSD Spanned)

Raspberry Pi3 B+, Pi4B (OSMC) & Pi5 (XBian) running Kodi v21.1
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Recording movies / TV to XBMC directory stucture spinnaker 10 3,757 2024-06-03, 03:56 AM
Last Post: Rod Hutchinson
  Not recording errors vidwiz 4 1,120 2024-04-17, 05:39 PM
Last Post: mvallevand
  Add Series/Episode Info to Recording Metadata andrewj 2 1,175 2023-11-20, 03:42 PM
Last Post: sub
  Recording to a network drive woes. 2leftfeet 12 7,483 2022-04-05, 08:03 PM
Last Post: mvallevand
  device needed for recording David209 2 1,807 2021-04-04, 08:47 AM
Last Post: David209
  PC not going to sleep after recording LeoL 7 3,479 2021-04-01, 07:17 PM
Last Post: Handy.Man
  HDHomerun recording bizzarely not working Jean0987654321 3 2,146 2021-03-27, 03:23 PM
Last Post: Jean0987654321
Video Restrict Recording Space foucomm 1 1,390 2021-01-30, 09:25 PM
Last Post: mvallevand
  Directory dropdown on the recording edit dialog MicahMakenzie 1 1,565 2021-01-11, 04:37 PM
Last Post: Graham
  Recording service stopped or not running at scheduled time MattInetroit 3 1,975 2021-01-08, 12:03 AM
Last Post: mvallevand

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

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

Linear Mode
Threaded Mode