NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Old Stuff (Legacy) v
1 2 3 4 5 … 125 Next »
Vidimport

 
  • 0 Vote(s) - 0 Average
Vidimport
BrettB
Offline

Posting Freak

Saint Paul, MN, USA
Posts: 2,667
Threads: 170
Joined: Jun 2007
#111
2010-10-24, 08:23 PM
carpeVideo Wrote:It may be that the xml file is a different structure than the one for GBVPR - can you post the XML file that you are trying to import?

For testing, I broke it down to just a single recording. Here's the file:
Code:
<?xml version="1.0" encoding="iso-8859-1"?>
<recordings>
  <recording>
    <filename>e:\old recordings\$..! My Dad Says\$..! My Dad Says_20100930_19312000.ts</filename>
    <channel>WCCO-DT</channel>
    <status>READY</status>
    <startTime>2010-09-30 19:31:00</startTime>
    <endTime>2010-09-30 20:00:00</endTime>
    <title>$..! My Dad Says *</title>
    <subtitle>Wi-Fight</subtitle>
    <description>(Thu, Sep 30, 2010) Ed refuses to allow a wireless Internet connection to be installed in the house; Vince convinces Bonnie to allow Ed, a retired doctor, to examine her body.
   &amp;#164;  Guests: Ian Wolterstorff   &amp;#164;  Actors: William Shatner, Jonathan Sadowski, Nicole Sullivan   &amp;#164;  Writer: Jeff Astrof</description>
    <uid />
    <group>1001</group>
  </recording>
</recordings>
carpeVideo
Offline

Posting Freak

Posts: 824
Threads: 23
Joined: Dec 2006
#112
2010-10-24, 10:45 PM
I see - NPVR expects much of the description to be wrapped in <event> ... </event> try the attached file.

It should automatically recognize it is for NPVR if not add the text npvrMode as an argument.
keith_leitch
Offline

Senior Member

Posts: 510
Threads: 53
Joined: Nov 2008
#113
2010-10-25, 01:08 AM
carpeVideo Wrote:I see - NPVR expects much of the description to be wrapped in <event> ... </event> try the attached file.

It should automatically recognize it is for NPVR if not add the text npvrMode as an argument.

I gotta say, CV, you are one helpful fella.
BrettB
Offline

Posting Freak

Saint Paul, MN, USA
Posts: 2,667
Threads: 170
Joined: Jun 2007
#114
2010-10-26, 12:56 AM
carpeVideo Wrote:I see - NPVR expects much of the description to be wrapped in <event> ... </event> try the attached file.

It should automatically recognize it is for NPVR if not add the text npvrMode as an argument.

I'm not sure what method you were trying to use to detect NPVR mode, but it didn't seem to work for me. With the npvrMode argument, though it did generate the new format file.

Unfortunately, I still get the same error trying to import in NPVR.
carpeVideo
Offline

Posting Freak

Posts: 824
Threads: 23
Joined: Dec 2006
#115
2010-10-26, 01:17 AM (This post was last modified: 2010-10-26, 01:23 AM by carpeVideo.)
Quote:I'm not sure what method you were trying to use to detect NPVR mode, but it didn't seem to work for me. With the npvrMode argument, though it did generate the new format file.

Unfortunately, I still get the same error trying to import in NPVR.

It is detecting the registry - are you on a 64-bit os by chance?

As to the import issue - I will play around some more I admit I did not test it I just assumed the format would be the same - I see some other minor differences I will mirror those and post a new version after I test it here.
BrettB
Offline

Posting Freak

Saint Paul, MN, USA
Posts: 2,667
Threads: 170
Joined: Jun 2007
#116
2010-10-26, 01:35 AM
carpeVideo Wrote:It is detecting the registry - are you on a 64-bit os by chance?

As to the import issue - I will play around some more I admit I did not test it I just assumed the format would be the same - I see some other minor differences I will mirror those and post a new version after I test it here.

Yes, I've got Windows 7 64-bit. And it has both GBPVR and NPVR installed, although only NPVR is being used right now.

I don't think that the special characters in that particular one are the problem because I get the same error (and no import) with 27 other files which don't have any special characters.

Thanks for working on this!
carpeVideo
Offline

Posting Freak

Posts: 824
Threads: 23
Joined: Dec 2006
#117
2010-10-26, 03:14 AM
Can you tell me the path to the registry key with the NPVR data directory. I don't have a 64 bit OS running so I couldn't add that path in to have it autodetect NPVR. I guess I should make both an over-rideable option as well since I assume if NPVR is installed that is the desired behavior.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,962
Threads: 956
Joined: May 2006
#118
2010-10-26, 03:27 AM
In your code if HKLM\Software\NPVR is not found, you need to look for HKLM\Software\Wow6432Node\NPVR

Martin
carpeVideo
Offline

Posting Freak

Posts: 824
Threads: 23
Joined: Dec 2006
#119
2010-10-26, 01:32 PM (This post was last modified: 2010-10-26, 04:45 PM by carpeVideo.)
Give this one a go -
It should correctly detect that it is NPVR and import correctly as well.

I should have done much more testing but I assumed the xml structure was the same. Oddly enough the metadata.xml is the same as gbpvr but the import format is different and it needs different capitalization for the same field within a single file (eg starttime then StartTime) so it took a while to ferret out.

This vidImport should import to either GBPVR or NPVR
* gbpvr files - using metadata
* npvr files - using hidden metadata
* other files using internet lookups based on the file name / dir structure

It has two new args to force mode - gbpvrMode or npvrMode - but will default to what it finds in the registry with NPVR as the priority.

Let me know how if it works for you , if so I will drop this version on the wiki.

I am debating having it directly insert the data via sql since with NPVR there is no command line option to import.

CV
BrettB
Offline

Posting Freak

Saint Paul, MN, USA
Posts: 2,667
Threads: 170
Joined: Jun 2007
#120
2010-10-26, 03:21 PM
carpeVideo Wrote:Give this one a go -
It should correctly detect that it is NPVR and import correctly as well.
CV

CV,

I think that something got messed up in your posting this latest version. When I download it, it's the same size and has the same creation date as the previous version I tried.

- Brett
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (16): « Previous 1 … 10 11 12 13 14 … 16 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  vidImport utility support carpeVideo 73 53,701 2012-05-27, 06:27 AM
Last Post: jksmurf
  Vidimport in Windows 7? Pob 18 9,695 2010-04-02, 08:01 PM
Last Post: Pob
  vidimport console error tvshowman 8 4,251 2009-07-27, 07:27 PM
Last Post: carpeVideo
  Vidimport - I'm getting duplicates. martint123 8 3,623 2009-01-21, 09:15 PM
Last Post: martint123

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

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

Linear Mode
Threaded Mode