View Full Version : VAP will not rename files correctly
jcthorne
October 25th, 2011, 01:43 PM
I have output file name defined as:
{title} S{seasonnum}E{epnum} {eptitle}
I also have a template for parsing the input file name as:
.mpg {title}-{eptitle}.mpg
kttmg saves the files as {title}-{eptitle}.mpg, for example:
Criminal Minds-The Performer.mpg
It also saves a metadata file Criminal Minds-The Performer.mpg.txt
VAP refuses to look up this episode and rename the file. Heck I do not even see a line in the log where it tries to look up the information on theTVDB.
Not sure what I am doing wrong.
dlflannery
October 25th, 2011, 04:25 PM
What version of VAP?
Be sure your space and dash ('-') counts in the parsing template match what kmttg is doing (exactly). I'll have to check but I think the template is case sensitive too.
Verify you don't have theTVDB.com searches disabled on the "Other" tab.
What does the VAP log say when it detects the file? Nothiing related to metadata or theTVDB.com ?
Are you just now trying to get renaming going, or is this something particular to one file or a group of files? (i.e., what might have changed?)
I don't have time to fire up VAP in the debugger right now but will attempt to duplicate this as soon as I can, perhaps later tonight. Be sure you have given me the exact details of the file name and templates for the case that seems to fail.
Also, I know you use Metagenerator 3. Try theTVDB lookup for the same series show there. Does it succeed?
jcthorne
October 25th, 2011, 05:43 PM
What version of VAP?
Be sure your space and dash ('-') counts in the parsing template match what kmttg is doing (exactly). I'll have to check but I think the template is case sensitive too.
Verify you don't have theTVDB.com searches disabled on the "Other" tab.
What does the VAP log say when it detects the file? Nothiing related to metadata or theTVDB.com ?
Are you just now trying to get renaming going, or is this something particular to one file or a group of files? (i.e., what might have changed?)
I don't have time to fire up VAP in the debugger right now but will attempt to duplicate this as soon as I can, perhaps later tonight. Be sure you have given me the exact details of the file name and templates for the case that seems to fail.
Also, I know you use Metagenerator 3. Try theTVDB lookup for the same series show there. Does it succeed?
I am running VAP 0.84
Exact template for input file name is {title} - {eptitle}.mpg
note the space dash space between title and eptitle
I have verified the file names match this. A specific example in my working directory now is:
Criminal Minds - The Performer.mpg
I see the following lines in the log related to metadata:
Metadata-based templates:
Output folder ="
Output file = "{title} S{seaseonnum}E{epnum} {eptitle}
Title = ""
There are no lines that reference theTVDB at all.
The box in advanced config 'other' tab is not checked.
I have never used renaming before today so it has never worked and then gone away.
Is there a more complete log somewhere? Anyway to cut and paste the log file or is it stored as a file other than on the gui screen?
dlflannery
October 25th, 2011, 09:20 PM
Remove the ".mpg" from the end of your parsing template. Sorry but I couldn't remember whether or not extensions could be included, and I couldn't find any instruction in either the pdf readme file or the GUI to that effect. I renamed one of my input files to "Criminal Minds - The Performer.mpg" and the parsing and theTVDB lookup worked fine (after removing the .mpg from the template).
In the process of testing this I realized another quasi-bug: changes to the input file name parsing templates and the translation templates are not registered with VAP's file detection process until processing is started or VAP is restarted -- but files are now detected whether processing is active or not. The net result is you could add a template but it might not be used on subsequent file detections. I will fix this.
jcthorne
October 26th, 2011, 04:40 AM
Removed the .mpg from the template and no change. Restarted VAP several times. The changes to the template are there. Even tried deleting the template and recreating it. VAP does not seem to parse the input files at all. No attempt to look up on theTVDB and no rename. Here is my log file for the last attempt when I wiped the config files and restarted VAP, reentered all file locations etc:
10/26/2011 4:30:29 AM Found no starting log file - starting new one.
10/26/2011 4:30:29 AM No command line arguments found
10/26/2011 4:30:29 AM Started program -- VideoReDo-AutoProcessor - Ver. 0.84
10/26/2011 4:30:29 AM Using configuration/data file: C:\Documents and Settings\james\Application Data\VAP\VideoFileManager.xml
10/26/2011 4:30:29 AM VRD install folder: C:\Program Files\VideoReDoPlus\
10/26/2011 4:33:49 AM 0 file ignore keys were read
10/26/2011 4:33:49 AM Read 1 input filename metadata parsing template(s)
10/26/2011 4:33:49 AM Read 0 title translation data lines
10/26/2011 4:33:49 AM Metadata-based templates:
10/26/2011 4:33:49 AM Output Folder = "
10/26/2011 4:33:49 AM Output file = "{title} S{seasonnum}E{epnum} {eptitle}"
10/26/2011 4:33:49 AM Title = ""
10/26/2011 4:33:49 AM Started QSF, input: Law and Order Criminal Intent - Lonelyville.mpg
10/26/2011 4:33:50 AM Using filter dimensions from MediaInfo: 1280 X 720
10/26/2011 4:33:57 AM VideoReDo said: INFO: VideoReDo version 3.10.3.616 - Mar 8 2011
10/26/2011 4:33:57 AM VideoReDo said: INFO: Applying QSF filter: 1280X720
dlflannery
October 26th, 2011, 09:01 AM
For a template to take effect it must already be be configured BEFORE VAP first detects a file in the monitor folder -- that's when it attempts to get metadata for the file.
With VAP running (processing or stopped should not matter):
1. Move an input file out of the monitor folder for a minute (long enough for VAP to drop it from its file list).
2. Move the file back into the monitor folder.
The only other thing I can think of is that somehow the template has characters with unicode values that don't match those in the file name although they look the same when displayed to you. As I said, I duplicated the case you gave exactly and it worked fine. You could check this by renaming the file to exactly the same name it already appeared to be. I think this is a very unlikely cause, but .... ? If you try this you should again do the two steps above to force VAP to re-detect the file.
Check the parsing template to be sure there isn't an extra space at the end (which wouldn't be noticeable to you).
Please upgrade to Ver. 0.85 also, so we are looking at the same code.
jcthorne
October 26th, 2011, 09:40 AM
For a template to take effect it must already be be configured BEFORE VAP first detects a file in the monitor folder -- that's when it attempts to get metadata for the file.
With VAP running (processing or stopped should not matter):
1. Move an input file out of the monitor folder for a minute (long enough for VAP to drop it from its file list).
2. Move the file back into the monitor folder.
The only other thing I can think of is that somehow the template has characters with unicode values that don't match those in the file name although they look the same when displayed to you. As I said, I duplicated the case you gave exactly and it worked fine. You could check this by renaming the file to exactly the same name it already appeared to be. I think this is a very unlikely cause, but .... ? If you try this you should again do the two steps above to force VAP to re-detect the file.
Check the parsing template to be sure there isn't an extra space at the end (which wouldn't be noticeable to you).
Please upgrade to Ver. 0.85 also, so we are looking at the same code.
Just updated to 0.85
Did not realize VAP only parsed the files when they are placed in the directory. Moved all files out of the watched directory, started 0.85 and then moved them back a few at a time. Seems to be working and saving files with the requested season number and episode number now.
Thanks so much for your help.
dlflannery
October 26th, 2011, 10:01 AM
I'm glad you posted this problem because I found the quasi-bug that was fixed in Ver. 0.85.
You can force VAP to re-do the metadata for an input file by checking "Redo metadata on file reset" on the "Other" tab of Advanced Configuration, then clicking "Reset" with that file selected (instead of having to move the file out and in to the monitor folder).
One reason for VAP to get metadata on initial file detection is so you can see metadata when you right-click on a file in its file list. An advantage is that by inspecting the log file you can see if there were problems getting metadata and adjust the parsing templates or translation tables prior to the file being processed, and force new metadata as described above.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.