2011-06-29, 09:49 PM
sub Wrote:If you post your npvr.db3, and config.xml, I can check that out.
For the most part, it's really designed to import the new format, but you can make it import the old format by naming your file "recording-dump.xml", which is the name of the old file GBPVR used to generate. This was only really intended to be used for users doing their move from GBPVR to NPVR.
Yes, the the new format is UTC time. The recording OID is optional, and ignored during import. You can make up any channel name if you want (there is no ID). The entire <Event> tag is optional. If you include it though, pretty much all the entries shown within that example <Event> are mandatory, but you can safely set the <OID> to 0 if you want. There is another half dozen or so optional settings not shown in that <Event>
Here's the config and database. Was trying to add the Kardashians episode mentioned above. Of course, you're telling me now that for a pvrx2 format import, it has to have a specific name? Then this might be the problem, as I was trying to import from tvimport.xml.
If I make my import file look like your npvr format one, can I use any filename I like?
Code:
<recording>
<oid>0</oid>
<name>Program name</name>
<channel>Import</channel>
<filename>\\server\share\filename.avi</filename>
<status>READY</status>
<startTime>2011-06-28T07:00:00.0000000Z</startTime>
<endTime>2011-06-28T07:30:00.0000000Z</endTime>
<Event>
<OID></OID>
<Title>Program name</Title>
<SubTitle>S0xE0x</SubTitle>
<Description>Description for episode</Description>
<ChannelOID>0</ChannelOID>
<StartTime>2011-06-28T07:00:00.0000000Z</StartTime>
<EndTime>2011-06-28T07:30:00.0000000Z</EndTime>
</Event>
</recording>
So that should work? Notice the <ChannelOID>0</ChannelOID> can this be 0 as well>? This was the channel ID i was referrring to.