NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums General General Discussion v
« Previous 1 2 3 4 5 … 159 Next »
VidImport not working

 
  • 0 Vote(s) - 0 Average
VidImport not working
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,768
Threads: 954
Joined: May 2006
#11
2020-12-08, 03:51 AM
If you could zip the file NextImport.txt that is made with the following command

NextImport --debug drive:\folder

I can see how my work in progress for TV Maze might save you the work of creating the xml file. Is there something specific you add?

Martin
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,768
Threads: 954
Joined: May 2006
#12
2020-12-08, 03:52 PM (This post was last modified: 2020-12-08, 11:57 PM by mvallevand.)
Adding the logic to create the import format was trival so you can try the attached if you'd like.  Same syntax new option

NextImport --export [folder]

It creates a file called NextImport.xml in the user folder than you can edit before importing via the web browser.

Edit:  changed to get the actual start time from the file and duration.  Slows the import a lot but worth it.

Martin


Attached Files
.zip   NextImport.zip (Size: 100.19 KB / Downloads: 88)
tesla1886
Offline

Kevin

United States
Posts: 140
Threads: 36
Joined: Oct 2017
#13
2020-12-09, 01:42 AM
I wrote my own program to create the XML files. I stay up to 6 am writing it and will probably pay for it latter but it does what I want. Unlike vidimport I can slect from with in the program not only where the video files are store, but where to safe the XML file as well.

Not that your efforts and help were not appreciated, but what I wrote is more customized to my project.

Thank You for the help.
Kevin

AMD FX-8320E 8 core
16 gig RAM
Gigabyte MoBo GA-970 DS3P
GIGABYTE Ultra Durable 2 Series GeForce GT 730 video card
1 TB SSD System drive, 10 TB HD for DVD's, 6 TB HD for recorded videos
Windows 10 Pro in domain
Next PVR client
Hauppauge WinTV-quadHD tuner card
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,768
Threads: 954
Joined: May 2006
#14
2020-12-09, 01:52 AM
Ok no worries this wasn't a hard change.

If you plan on using Kodi make sure the recording start time isn't minvalue and the end time is correct to get a good duration.

Martin
a1blues
Offline

Member

Posts: 120
Threads: 22
Joined: Aug 2018
#15
2021-05-03, 12:24 AM (This post was last modified: 2021-05-03, 12:35 AM by a1blues.)
I just tried the nextimport util as I have an xml file I want to add to the recording on nextpvr without using the webapp to do so. I tried the option you specified --import and location of the xml file but it fails to update the database with the recordings contained in the xml file.?
Is there a way to do this with your util or another method so I can manually add recordings to the database through a script or batch file? I need to make it automated and not have to load up the web app and click import recordings.
Ive included the xml file.
Thanks.


mvallevandOk MKV is not the best format for web based v5 and I'm not sure if NextPVR.exe will handle them as recordings either, but Kodi can take them.

Try the attached first to see how the parsing will work

- make a backup copy of npvr.db3 
- unnzip into the NextPVR program folder
- delete NextImport.runtimeconfig.json
- run

NextImport --import drive:\folder

if you omit folder it will scan all your drives.  If your folder name has spaces make sure to have quotes around it ie "D:\Recordings On DVD"

Martin


Attached Files
.zip   NextPVRImport.zip (Size: 993 bytes / Downloads: 15)
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,768
Threads: 954
Joined: May 2006
#16
2021-05-03, 02:56 AM
Currently there is no method to import a bulk xml file, it is designed for files with an xml or nfo file or some tandard file naming convention. Right now now wtv is also not supported since it is terrible choice for importing into NextPVR much worse then mkv because of extremely limited client support. I will add wtv files and I'll check how hard it would be to import from a standard file like you provided.

Martin
a1blues
Offline

Member

Posts: 120
Threads: 22
Joined: Aug 2018
#17
2021-05-03, 09:34 AM
(2021-05-03, 02:56 AM)mvallevand Wrote: Currently there is no method to import a bulk xml file,  it is designed for files with an xml or nfo file or some tandard file naming convention.  Right now now wtv is also not supported since it is terrible choice for importing into NextPVR much worse then mkv because of extremely limited client support.  I will add wtv files and I'll check how hard it would be to import from a standard file like you provided.

Martin

Many thanks Martin because that would be great as I use both nextpvr and media center and would love to incorperate recordings from media center to nextpvr so I can play them on my phone through the web app and remote access.
I know you could once import xml recording files through nextpvr 4.
Cheers.
Mark.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,768
Threads: 954
Joined: May 2006
#18
2021-05-03, 04:14 PM
Ok I have added wtv to the list of file that import will process and added a new option -importxml that will simply pass an XML file to NextPVR for importing using sub's logic I only tested it with your file.

The reason I don't like wtv  files is you still will need to transcode them for playback on your browser or phone so you might as well transcode them to a web friendly format before you import them to the database, your mobile experience will be improved


Martin


Attached Files
.zip   NextImport.zip (Size: 119.52 KB / Downloads: 19)
a1blues
Offline

Member

Posts: 120
Threads: 22
Joined: Aug 2018
#19
2021-05-03, 06:02 PM
(2021-05-03, 04:14 PM)mvallevand Wrote: Ok I have added wtv to the list of file that import will process and added a new option -importxml that will simply pass an XML file to NextPVR for importing using sub's logic I only tested it with your file.

The reason I don't like wtv  files is you still will need to transcode them for playback on your browser or phone so you might as well transcode them to a web friendly format before you import them to the database, your mobile experience will be improved


Martin

Thanks Martin.
I have just tried it out.
I copied the contents of the zip file to the nextpvr folder with the nextpvrimport.xml test file and typed the following in dos after changing dir into the nextpvr folder:
nextimport -importxml "nextpvrimport.xml"

It does not launch but states unknown option: -importxml 

I did some screenshots I will attach to show the error and also info on the dotnet sdk and runtimes installed.
Im using windows 10.

I wondered what I need to do the get the program to work.
Thanks.


Attached Files
.zip   Desktop.zip (Size: 972.37 KB / Downloads: 3)
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,768
Threads: 954
Joined: May 2006
#20
2021-05-03, 06:09 PM
Perhaps your browser cache is an issue, check the file date of the exe and dll to make sure they are today's date.

Martin
« 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
  download button not working momofterrors 0 1,574 2016-06-20, 11:16 PM
Last Post: momofterrors
  get working/batch/file dirs from one line[any dir of it's path too!] pBS 17 12,362 2013-11-05, 12:03 PM
Last Post: pBS
  Working on Server 2012 darrenmunday 3 3,619 2013-10-31, 09:47 PM
Last Post: jyan_osu
  Forum Search not working wtg 4 2,026 2011-02-18, 12:08 PM
Last Post: martint123
  FYI: S3 problems under Windows 7 x64 (not fully working as it should) ShiningDragon 0 1,776 2011-01-02, 03:27 AM
Last Post: ShiningDragon
  Should I switch to NPVR from a working GBPVR setup ?? softfoot 3 2,140 2010-11-07, 08:56 PM
Last Post: BigMoose
  Remote not working (BootIntoGBPVR)/GBPVR start another program -any ideas? fray_bentos 12 4,071 2010-02-23, 08:42 PM
Last Post: gEd
  Need help working out what server filter is rejecting GBPVR forum replies jksmurf 10 3,591 2009-07-18, 05:38 PM
Last Post: martint123
  Suggestions for working with HD PVR output rgann 1 1,693 2009-03-17, 07:27 AM
Last Post: psycik
  GBPVR v1.2.13 - volume control from remote not working vskatusa 0 1,475 2008-08-12, 08:59 PM
Last Post: vskatusa

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

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

Linear Mode
Threaded Mode