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) SearchWiz & MovieWiz v
« Previous 1 … 3 4 5 6 7 … 16 Next »
Feature Request?

 
  • 0 Vote(s) - 0 Average
Feature Request?
Zinefer
Offline

Junior Member

Posts: 11
Threads: 3
Joined: Mar 2009
#1
2009-03-18, 12:30 PM
Hey JavaWiz, would you mind adding some command line compatability to your WizMetaDataGrabber?

Something that I can start the grabber from a scheduled task, and the window wont pop up and minimize my PVRX2? It should only update files that have not had meta data retrieved (the ones without checks?)... Here are some of the switches I was thinking of:

WizMetaDataGrabber "E:\Videos" -r -n

-r : Recurse
-n : Only process new files

Thanks!
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#2
2009-03-18, 06:03 PM
Zinefer Wrote:Hey JavaWiz, would you mind adding some command line compatability to your WizMetaDataGrabber?

Something that I can start the grabber from a scheduled task, and the window wont pop up and minimize my PVRX2? It should only update files that have not had meta data retrieved (the ones without checks?)... Here are some of the switches I was thinking of:

WizMetaDataGrabber "E:\Videos" -r -n

-r : Recurse
-n : Only process new files

Thanks!
Yes.

Actually I am working on this right now, but have been pretty busy with my 8-5 (or 6,7,8,9,10) job. I hope to have something released within the next week or so.
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#3
2009-03-27, 03:09 AM
Here is a pre-release of the WizMetadataGrabber with commandline interface. Before posting on Wiki, I'd like to get some feedback and work thru any bugs.

From a command line, type WizMetadataGrabber /help
Quote:SYNTAX:
WizMetadataGrabber - INTERACTIVE Mode, no parameters
or
WizMetadataGrabber /f: filename | /d: directory [option1] [option2]...
/d: Process a specific directory.
/f: Process a specific file.
Where options are specified as below:
/h This help dialog.
/r Recurse directories (valid with /d: option)
/rc: true|false Replace coverart if it already exists.
/rm: true|false Replace metadata if it already exists.
/sf: fmt Save format. fmt can be one of:
'filexml', 'embed' or 'both'.
/so: name Series override. Specify the name of the series.

I have incorporated into my post processing as below:

Code:
Timeout 5
SET newName=%~f1
WizRenameRecording "%~f1" -default
if %ERRORLEVEL%== 0 (
  Call :LOGMSG WizRenameRecording completed with ErrorLevel: %ERRORLEVEL%
  FOR /f "tokens=*" %%i IN (logs\WizRenameRecording.log) DO If NOT .%%i==. SET newName=%%i
) ELSE (
  Call :LOGMSG WizRenameRecording completed with ErrorLevel: %ERRORLEVEL% Check logs\WizRenameRecording.log
)
if NOT "%newName%"=="%~f1" Call :LOGMSG File renamed to: %newName%

TimeOut 5
WizMetadataGrabber  /f: "%newName%" /rm: false /rc: false
if %ERRORLEVEL%== 0 (
  Call :LOGMSG WizMetadataGrabber completed with ErrorLevel: %ERRORLEVEL%
) ELSE (
  Call :LOGMSG WizMetadataGrabber completed with ErrorLevel: %ERRORLEVEL% Check logs\WizMetadataGrabber.log
)
Zinefer
Offline

Junior Member

Posts: 11
Threads: 3
Joined: Mar 2009
#4
2009-03-27, 03:17 AM
I'll test it now. Smile
Zinefer
Offline

Junior Member

Posts: 11
Threads: 3
Joined: Mar 2009
#5
2009-03-27, 03:31 AM
Hmm, I cant seem to get it working... Also, the command line syntax seems a bit cumbersome... It took me a while to figure out how to specify a format, and directory... Also, after figuring that out I was still unable to get it to process correctly I think. It came back with a -60 return.

Might I suggest these changes to the syntax:

Instead of /d or /f couldn't you just check if the specified string is a file or directory?

Instead of sf: 'embed' why not split those into a few command line switches, such as /em and /ex for embed and external. Make it known that it will choose one by default if not specified.

Same thing with the true or false switches maybe assume they're false unless called?

Thanks!
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#6
2009-03-27, 03:46 AM (This post was last modified: 2009-03-27, 04:53 AM by JavaWiz.)
Zinefer Wrote:Hmm, I cant seem to get it working... Also, the command line syntax seems a bit cumbersome... It took me a while to figure out how to specify a format, and directory... Also, after figuring that out I was still unable to get it to process correctly I think. It came back with a -60 return.
A -60 means a save format mis-match. The format must be lowercase AND have the value of 'filexml', 'embed' or 'both' (will be fixed in next version).

Your command line should look something like:

WizMetadataGrabber /f: somefile.mpg /sf: embed
Quote:Might I suggest these changes to the syntax:

Instead of /d or /f couldn't you just check if the specified string is a file or directory?
I did it this way so that options could be specified in any order and there would be no problems parsing.
Quote:Instead of sf: 'embed' why not split those into a few command line switches, such as /em and /ex for embed and external. Make it known that it will choose one by default if not specified.
I will probably split these out into separate options to make it easier in the next version.
Quote:Same thing with the true or false switches maybe assume they're false unless called?
Defaults are what are in the config, specifying true/false lets you override either if neccessary.

You ONLY have to specify either /f: or /d: parameters, all others are optional and default to config settings (ie Options tab).
ACTCMS
Offline

Posting Freak

UK
Posts: 2,730
Threads: 101
Joined: Jun 2007
#7
2009-03-27, 10:14 PM
I got the -60 error first try because I'd misread the help instructions - I had specified 'both' instead of just both...:o

I do get another small problem with
Code:
<channel>WMDG-1</channel>
in the embedded data instead of the real channel - this is not new to this version.

Usage: I manually trim my recordings and then rename then back to the original filename, so I created a .bat file which I added to the context menu for .mpg files
Code:
"c:\Program Files\devnz\gbpvr\WizMetadataGrabber"  /f: "%~f1" /rm: false /rc: false /sf: both
pause
so now I can edit a group of files in a dir, select them all and run the batch file from the context menu.

Another significant improvement to a great utility - thanks.
ACTCMS
Offline

Posting Freak

UK
Posts: 2,730
Threads: 101
Joined: Jun 2007
#8
2009-03-28, 01:06 AM
I also had to stop the recording service to allow WizUiHelper.dll to install.
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#9
2009-03-28, 02:35 AM
Next version the save format will be specified by 3 different options:

/se - save embedded
/sf - save external file
/sb - save both

Also, if found in DB, that Channel will be saved in the result rather than 'WMDG-1'.

I will also update the installer to shutdown recording service before installing for WizUiHelper.DLL.


Thanks for the feedback!
7ore
Offline

Senior Member

Posts: 598
Threads: 68
Joined: Mar 2006
#10
2009-03-28, 06:57 AM
If you run the bat file with: /sf: filexml this setting is saved in the wizmetadatagrabber.exe.xml.

If you now open the wizmetadatagrabber UI, filexml is selected.
If you now close the UI (without changing this), the setting in exe.xml is changed to "embed".
So the next time the UI is opened, "embed" is selected in the UI Options tab.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  WizMetadataGrabber: Request Ability to Change Show And/Or Episode delimeters NeoH4x0r 1 1,948 2009-08-14, 12:12 AM
Last Post: JavaWiz
  Image Download feature request.... psycik 3 2,906 2008-05-27, 10:30 PM
Last Post: JavaWiz
  Moviewiz Request - selectable title, tagline, actors, plot order ? jksmurf 2 2,320 2008-04-26, 04:40 AM
Last Post: jksmurf
  Moviewiz 1014 - Request - copy details from one show to another jksmurf 8 4,087 2008-04-18, 09:09 PM
Last Post: frankmcg
  Episode tweaker, request if it is possible. martint123 19 6,804 2008-03-02, 08:47 AM
Last Post: martint123
  Wish for new Feature and a tweak 7ore 1 2,132 2008-02-11, 11:34 PM
Last Post: JavaWiz
  Moviewiz is a wonderful feature to GBPVR but how to auto? best ways? tvshowman 4 2,477 2008-02-11, 10:32 PM
Last Post: tvshowman
  MovieWiz questions and request Trips 2 2,061 2008-01-17, 03:43 PM
Last Post: Trips
  bug or missing feature? tvshowman 8 3,892 2007-12-27, 02:31 AM
Last Post: dark_half
  Moviewiz request - Move show info on archive? jksmurf 5 3,061 2007-11-17, 07:49 AM
Last Post: JavaWiz

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

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

Linear Mode
Threaded Mode