This project has moved. For the latest updates, please go here.

Please Help

Topics: question
Apr 17, 2013 at 10:24 AM
A lot of my wtv files are not being renamed and I cant figure out why. Here is a sample from one of the logs:

Processing American Restoration - S02E06 - The Big Move .wtv
... title is 'American Restoration'
... FetchSeriesID returning 199011 from cache
... returning default language code en
... returning MatchBroadcastDate as False
... returning MatchBroadcastDate as False
... SeriesIsInIgnoreList
...... ignore list is empty
...... returning False
... SeriesIsNotInOnlyList
...... only list is empty
...... returning False
... retrieved episode information from cache
... testing against the subtitle metadata
... MatchEpisodePrecisely: trying to find an episode that matches 'The Big Move'
... didn't match text
... BestMatchEpisode called for 'The Big Move'
... '': ignoring score of 12 as it exceeds the 50% threshold
... '': ignoring score of 12 as it exceeds the 50% threshold
... '': ignoring score of 12 as it exceeds the 50% threshold
... '': ignoring score of 12 as it exceeds the 50% threshold
... '': ignoring score of 12 as it exceeds the 50% threshold
... '': ignoring score of 12 as it exceeds the 50% threshold
... '': ignoring score of 12 as it exceeds the 50% threshold
... 'Pain in the Gas': ignoring score of 13 as it exceeds the 50% threshold
... 'Ridin' Route 66': ignoring score of 13 as it exceeds the 50% threshold
... 'Double Trouble': ignoring score of 11 as it exceeds the 50% threshold
... 'Slick Pick': ignoring score of 11 as it exceeds the 50% threshold
... 'Buck Wild': ignoring score of 11 as it exceeds the 50% threshold
... 'Hopalong Rick': ignoring score of 11 as it exceeds the 50% threshold
... 'Ice Cold': ignoring score of 9 as it exceeds the 50% threshold
... 'Lights Out': ignoring score of 10 as it exceeds the 50% threshold
... 'Buttered Up': ignoring score of 11 as it exceeds the 50% threshold
... 'Cooler Kings': ignoring score of 12 as it exceeds the 50% threshold
... 'Knockout': ignoring score of 11 as it exceeds the 50% threshold
... 'Duck and Cover': ignoring score of 9 as it exceeds the 50% threshold
... 'Pumped Up': ignoring score of 11 as it exceeds the 50% threshold
... 'Space Kowboy': ignoring score of 11 as it exceeds the 50% threshold
... 'Jackpot': ignoring score of 11 as it exceeds the 50% threshold
... 'Safe Keeping': ignoring score of 11 as it exceeds the 50% threshold
... 'Suck Up': ignoring score of 11 as it exceeds the 50% threshold
... 'Rev'd Up': ignoring score of 10 as it exceeds the 50% threshold
... 'Apples and X-Rays': ignoring score of 14 as it exceeds the 50% threshold
... 'Hot & Cold': ignoring score of 9 as it exceeds the 50% threshold
... 'Secret Fan': ignoring score of 10 as it exceeds the 50% threshold
... 'Grippin' Mad': ignoring score of 10 as it exceeds the 50% threshold
... 'The Pick, The Pawn, & The Polish': ignoring score of 25 as it exceeds the 50% threshold
... 'Anchors Away': ignoring score of 11 as it exceeds the 50% threshold
... 'Special Delivery': ignoring score of 12 as it exceeds the 50% threshold
... 'Rusted and Busted': ignoring score of 13 as it exceeds the 50% threshold
... 'Batter Up': ignoring score of 11 as it exceeds the 50% threshold
... 'Suds and Duds': ignoring score of 11 as it exceeds the 50% threshold
... 'American Hero': ignoring score of 11 as it exceeds the 50% threshold
... 'Close Shave': ignoring score of 10 as it exceeds the 50% threshold
... 'Missile Impossible': ignoring score of 14 as it exceeds the 50% threshold
... 'Wheel & Deal': ignoring score of 9 as it exceeds the 50% threshold
... 'Cold War Cruisin'': ignoring score of 15 as it exceeds the 50% threshold
... 'Tractors & Trucks': ignoring score of 15 as it exceeds the 50% threshold
... 'Surfing the Strip': ignoring score of 15 as it exceeds the 50% threshold
... 'Smoking Hot ': ignoring score of 9 as it exceeds the 50% threshold
... 'Milking It': ignoring score of 10 as it exceeds the 50% threshold
... 'Keep on Trucking ': ignoring score of 15 as it exceeds the 50% threshold
... 'Bikes & Barbecues ': ignoring score of 14 as it exceeds the 50% threshold
... 'Pain in the Gas': ignoring score of 13 as it exceeds the 50% threshold
... 'Ridin' Route 66': ignoring score of 13 as it exceeds the 50% threshold
... 'Double Trouble': ignoring score of 11 as it exceeds the 50% threshold
... 'Slick Pick': ignoring score of 11 as it exceeds the 50% threshold
... 'Buck Wild': ignoring score of 11 as it exceeds the 50% threshold
... 'The Big Move ': replacing previous score of -1 with 1
... 'Bumper Balls': ignoring score of 12 as it exceeds the 50% threshold
... 'Cold Cuts': ignoring score of 11 as it exceeds the 50% threshold
... 'The Big Bang': replacing previous score of -1 with 4
... 'Top Dog': ignoring score of 9 as it exceeds the 50% threshold
... 'Pump & Gun': ignoring score of 11 as it exceeds the 50% threshold
... 'Tall Order': ignoring score of 10 as it exceeds the 50% threshold
... 'Tyler's Promotion': ignoring score of 13 as it exceeds the 50% threshold
... 'Blast Off!': ignoring score of 11 as it exceeds the 50% threshold
... 'King of Signs': ignoring score of 12 as it exceeds the 50% threshold
... 'Hot & Salty': ignoring score of 11 as it exceeds the 50% threshold
... 'Restoration Rivalry': ignoring score of 15 as it exceeds the 50% threshold
... 'Treats & Feet': ignoring score of 10 as it exceeds the 50% threshold
... 'Cannonball Safe': ignoring score of 12 as it exceeds the 50% threshold
... 'Motor Mayhem': ignoring score of 11 as it exceeds the 50% threshold
... 'Sticky Fingers': ignoring score of 12 as it exceeds the 50% threshold
... 'Dirt Bike Duels': ignoring score of 11 as it exceeds the 50% threshold
... 'Train Trouble': ignoring score of 10 as it exceeds the 50% threshold
... 'Feel the Heat': ignoring score of 10 as it exceeds the 50% threshold
... 'Down & Dirty': ignoring score of 12 as it exceeds the 50% threshold
... 'Saddle Up!': ignoring score of 11 as it exceeds the 50% threshold
... 'Big Boom': ignoring score of 7 as it exceeds the 50% threshold
... 'Strong Arm': ignoring score of 10 as it exceeds the 50% threshold
... 'Phony Baloney': ignoring score of 10 as it exceeds the 50% threshold
... 'Right Here, Rum Now': ignoring score of 14 as it exceeds the 50% threshold
... 'Soda Jerks': ignoring score of 12 as it exceeds the 50% threshold
... 'Prank War': ignoring score of 11 as it exceeds the 50% threshold
... 'Pimp Chum's Ride': ignoring score of 13 as it exceeds the 50% threshold
... 'Hammered': ignoring score of 10 as it exceeds the 50% threshold
... 'Busted Beemer': ignoring score of 11 as it exceeds the 50% threshold
... 'Planes and Flames': ignoring score of 13 as it exceeds the 50% threshold
... 'Nut Job': ignoring score of 10 as it exceeds the 50% threshold
... 'Harrison's Vendorlator': ignoring score of 19 as it exceeds the 50% threshold
... 'Call the Count': ignoring score of 11 as it exceeds the 50% threshold
... 'Break In': ignoring score of 10 as it exceeds the 50% threshold
... 'Bombshell': ignoring score of 11 as it exceeds the 50% threshold
... 'One Horse Open Sleigh': ignoring score of 17 as it exceeds the 50% threshold
... 'Clueless': ignoring score of 12 as it exceeds the 50% threshold
... 'Employee of the Month': ignoring score of 16 as it exceeds the 50% threshold
... 'Stolen Memories': ignoring score of 11 as it exceeds the 50% threshold
... 'Escorter Service': ignoring score of 13 as it exceeds the 50% threshold
... 'Bear Down': ignoring score of 9 as it exceeds the 50% threshold
... 'Vacuum Daze': ignoring score of 10 as it exceeds the 50% threshold
... 'Photo Finish': ignoring score of 11 as it exceeds the 50% threshold
... 'Vacuum Daze': ignoring score of 10 as it exceeds the 50% threshold
... 'Photo Finish': ignoring score of 11 as it exceeds the 50% threshold
... 'Harleys and Horsies': ignoring score of 14 as it exceeds the 50% threshold
... 'Mixed Signals': ignoring score of 10 as it exceeds the 50% threshold
... 'Atomic Restoration': ignoring score of 16 as it exceeds the 50% threshold
... 'Sand Hassle': ignoring score of 11 as it exceeds the 50% threshold
... testing against the description and colon delimiter
... MatchEpisodePrecisely: trying to find an episode that matches 'A client hefts in a 1900s penny scale from the Santa Cruz boardwalk; a picker strolls in with a 1930s Taylor Tot walker.'
... didn't match text
... BestMatchEpisode called for 'A client hefts in a 1900s penny scale from the Santa Cruz boardwalk; a picker strolls in with a 1930s Taylor Tot walker.'
... BestMatchEpisode: ignoring very long text to test against
... testing against the description and full-stop delimiter
... MatchEpisodePrecisely: trying to find an episode that matches 'A client hefts in a 1900s penny scale from the Santa Cruz boardwalk; a picker strolls in with a 1930s Taylor Tot walker.'
... didn't match text
... BestMatchEpisode called for 'A client hefts in a 1900s penny scale from the Santa Cruz boardwalk; a picker strolls in with a 1930s Taylor Tot walker.'
... BestMatchEpisode: ignoring very long text to test against
... file has broadcast date of '01/25/2012 12:00:00'
... file has recording date of '03/17/2013 07:58:00'
... testing against semi-colon multi-titles
... skipping this test; found 1 parts instead of 2
... imprecise testing against the subtitle metadata
... MatchEpisodeImprecisely: trying to find an episode that matches 'The Big Move'
... matched against season 2 and episode 6
... got interim name of American Restoration - S02E06 - The Big Move .wtv
... remapped name is American Restoration - S02E06 - The Big Move .wtv
... skipping rename as file of that name already exists
Coordinator
Apr 17, 2013 at 10:53 AM
tonyt76 wrote:
A lot of my wtv files are not being renamed and I cant figure out why. Here is a sample from one of the logs:
...
... remapped name is American Restoration - S02E06 - The Big Move .wtv
... skipping rename as file of that name already exists
The answer is on the last line :-).

If that isn't what you mean, please can you clarify?

Thanks.
Apr 17, 2013 at 11:03 AM
Let me clarify. Half of my files are not being renamed. They stay in this format:

American Restoration_HSTRYHD_2012_12_25_19_00_04.wtv

Processing American Restoration_HSTRYHD_2012_12_25_19_00_04.wtv
... title is 'American Restoration'
... FetchSeriesID returning 199011 from cache
... returning default language code en
... returning MatchBroadcastDate as False
... returning MatchBroadcastDate as False
... SeriesIsInIgnoreList
...... ignore list is empty
...... returning False
... SeriesIsNotInOnlyList
...... only list is empty
...... returning False
... retrieved episode information from cache
... testing against the subtitle metadata
... MatchEpisodePrecisely: trying to find an episode that matches 'Ridin' Route 66'
... matched 2 times - unable to safely rename
... S00E02 - Ridin' Route 66 [Original airdate: 2012-01-11]
... S02E02 - Ridin' Route 66 [Original airdate: 2012-01-11]
... failed to match TV programme precisely against the database
Coordinator
Apr 17, 2013 at 11:06 AM
OK, so in this situation the script is matching the episode against two entries in TVDB, so it doesn't know what to do. In order to be safe, it decides not to do anything.

What I tend to do is run the script in interactive mode. That way, if the script needs my help, it will list those choices and I then pick one.

Given the two entries you've listed above, I'd probably personally picky S02E02 but the script doesn't have the capability of working out which one is the best/right one to pick, so it does nothing.
Apr 17, 2013 at 11:07 AM
Or Tanked- Unfiltered_APLHD_2012_12_26_16_00_02.wtv

Processing Tanked- Unfiltered_APLHD_2012_12_26_16_00_02.wtv
... title is 'Tanked: Unfiltered'
... FetchSeriesID returning 258396 from cache
... returning default language code en
... returning MatchBroadcastDate as False
... returning MatchBroadcastDate as False
... SeriesIsInIgnoreList
...... ignore list is empty
...... returning False
... SeriesIsNotInOnlyList
...... only list is empty
...... returning False
... retrieved episode information from cache
... testing against the subtitle metadata
... MatchEpisodePrecisely: trying to find an episode that matches 'Serenity Now'
... didn't match text
... BestMatchEpisode called for 'Serenity Now'
... 'Rules Of Engagement': ignoring score of 16 as it exceeds the 50% threshold
... 'Brett Takes A Dive': ignoring score of 15 as it exceeds the 50% threshold
... 'Be Cool': ignoring score of 10 as it exceeds the 50% threshold
... testing against the description and colon delimiter
... MatchEpisodePrecisely: trying to find an episode that matches 'The crew discusses building tanks for a tattoo parlor and a furniture store.'
... didn't match text
... BestMatchEpisode called for 'The crew discusses building tanks for a tattoo parlor and a furniture store.'
... BestMatchEpisode: ignoring very long text to test against
... testing against the description and full-stop delimiter
... MatchEpisodePrecisely: trying to find an episode that matches 'The crew discusses building tanks for a tattoo parlor and a furniture store.'
... didn't match text
... BestMatchEpisode called for 'The crew discusses building tanks for a tattoo parlor and a furniture store.'
... BestMatchEpisode: ignoring very long text to test against
... file has broadcast date of '06/30/2012 12:00:00'
... file has recording date of '12/26/2012 04:00:00'
... testing against semi-colon multi-titles
... skipping this test; found 1 parts instead of 2
... imprecise testing against the subtitle metadata
... MatchEpisodeImprecisely: trying to find an episode that matches 'Serenity Now'
... didn't match text
... BestMatchEpisode called for 'Serenity Now'
... 'Rules Of Engagement': ignoring score of 16 as it exceeds the 50% threshold
... 'Brett Takes A Dive': ignoring score of 15 as it exceeds the 50% threshold
... 'Be Cool': ignoring score of 10 as it exceeds the 50% threshold
... imprecise testing against the description
... MatchEpisodeImprecisely: trying to find an episode that matches 'The crew discusses building tanks for a tattoo parlor and a furniture store.'
... didn't match text
... BestMatchEpisode called for 'The crew discusses building tanks for a tattoo parlor and a furniture store.'
... BestMatchEpisode: ignoring very long text to test against
... no precise test
... best matches have a score of -1
... got 3 best matches
... failed to match TV programme precisely against the database
... best matches have a score of -1
... possible matching programmes are:
... S01E01 - Rules Of Engagement [Original airdate: 2012-04-07]
... S01E02 - Brett Takes A Dive [Original airdate: 2012-04-14]
... S01E03 - Be Cool [Original airdate: 2012-04-21]
Coordinator
Apr 17, 2013 at 11:09 AM
For this one, the script isn't finding an entry in TVDB that has a title of "Serenity Now".

If you look at http://thetvdb.com/?tab=seasonall&id=258396&lid=7, you'll see that only three episodes are listed, none of which have a matching title. So, again, the script doesn't have a good enough match/answer to decide what to do.
Apr 17, 2013 at 11:15 AM
This makes a lot of sense!. Im assuming that the best bet is to run the script in -interactive mode to make decisions for the script when it cant decide what to do.

The burden seems to fall on tvdb to make the matches happen accurately...

When this happens, do you manually fix your wtv files, or just leave them alone?
Coordinator
Apr 17, 2013 at 11:18 AM
Yes, interactive mode is the best choice if you are seeing a lot of failures. When the data is there on TVDB, the script works really well and you don't have to run it interactively.

You might not know but thetvdb.com is a community-driven site so you can register for your own account on the site and contribute missing episode information. This is another reason why the script sometimes fails - data put onto the site may not match data used by the broadcaster.

Personally, I rarely edit the properties of a recording in order to get it to match. I guess I'm lucky in that the programmes I watch have contributors who put up accurate data.
Apr 17, 2013 at 11:19 AM
Edited Apr 21, 2013 at 6:30 PM
Thanks.
Apr 17, 2013 at 11:43 AM
Edited Apr 21, 2013 at 6:30 PM
When I try to run -singlefile, I get an error?
Apr 17, 2013 at 12:25 PM
Maybe I am typing it in wrong:

Is this correct?

.\WTV-MetaRenamer.ps1 -singlefile American Restoration_HSTRYHD_2012_12_25_20_28_00.wtv
Coordinator
Apr 17, 2013 at 12:39 PM
tonyt76 wrote:
Maybe I am typing it in wrong:

Is this correct?

.\WTV-MetaRenamer.ps1 -singlefile American Restoration_HSTRYHD_2012_12_25_20_28_00.wtv
Put quotes around the filename - you've got a space in the name which will be confusing PowerShell as it won't know that the filename isn't just "American"
Apr 17, 2013 at 12:41 PM
How can I eliminate the space?
Coordinator
Apr 17, 2013 at 12:45 PM
tonyt76 wrote:
How can I eliminate the space?
\WTV-MetaRenamer.ps1 -singlefile "American Restoration_HSTRYHD_2012_12_25_20_28_00.wtv"
Apr 17, 2013 at 6:33 PM
Edited Apr 21, 2013 at 6:28 PM
Thank you that works.