Waste of time

mulebreath

17-07-2010 02:42:11

I have twilight zone episodes neatly organized into season folders. They were named as 001 - Name, 002 - Name, etc. The "Name" exactly matches what the scraper brings up. Still, they are all listed as missing. OK, so I removed the numbers and just had "Name" for each episode. Once again, the name "exactly" matched the scraper's findings. All I needed the program to do was insert "Twilight Zone.SxEx." in front of all the names ("exactly matching" names, did I mention that?). And when I scanned, they all still come up missing! Remarkable, how much more information does the program need than a source directory with episode names that exactly match the scraper? I guess my only problem with this program is that it doesn't actually work.

Mech_Man

17-07-2010 03:48:55

Not to step on the moderator's digital toes, but I'll try give this and answer.

If you read other posts, you would learn that this program pretty much ignores the episode titles.
They are way too many variations and alterations. (IE: "Show name - s03e04 - The Episode Title" ... does the "The " count?, some would have it labeled as "Episode Title, The" so it alphabetizes better). Some episode titles have question marks or colons (characters not usable as a file names), some have hyphens, periods, commas, etc.

TVrename is all about the series and episode numbers. The renumbering engine and all those different real expressions (File Name Processors) are used to examine the show's season and episode numbers in the different source formats to let you generate a standardized final format of series and episode numbers that you choose. It would take a pretty good AI to figure out titles matching.

You say your titles exactly match the list scraped from TVdb, but that is a pretty rare occurrence, and to make that statement you had to look at every single file and you, yourself judge the match. (Something this program is trying to avoid, and one of it's biggest draws for us users).

I actually would expect that if you had TVrename set up with:
Twilight Zone added, With Automatic Folders pointing to your TZ root folder, and the Folders per season base name checked, and the sub folder names matching, (and Pad season folders checked as applicable), then TVrename should be able to identify the episode files by their number if the Filename Processors are properly tweaked to not look for a Series Title or Season number.

I suspect you hadn't generated a File Name Processor to accommodate your own source format, so here's my attempt:

Taking the already-provided File Name Processor as an example:
(^|[^a-z])(?<s>[0-9])(?<e>[0-9]{2,})[^a-z] "Show - 323 - Foo"

and delete the Real Expressions the example uses to handle the series name and number, and bumping the episode number to 3 digits yields:
(^?<e>[0-9]{3,})[^a-z]
with the description of: "001 - Foo"
(and would also work for "e001 - Foo")

If you use this, then I think TVrename will scan and recognize your files.
(suggestions and corrections from others welcome!)

Good luck!

mulebreath

17-07-2010 04:20:53

Thanks very much for the info, Mech_Man. Of course, I've deleted all the numbers and just have the names left, I will go into the filename processor and see if I can come up with something, otherwise I'll just do it manually and move on with my life.

Mech_Man

17-07-2010 06:10:54

I'm really good at editing text files and using the old DOS batch command for renaming files. If you cut and paste all below to a new text file, and give it a name with a "BAT" extension, IE: Renamer.bat, and put it in a directory with all your Episode-Name-only files, then this will rename them fully. (assuming your episode name matches EXACTLY what is in the TVdb).

You MUST use a text editor, like NotePad, so that the file is in text format, not Word or such.
Also, this presumes your files are in AVI format. If in another, use a Search and Replace for the extension.





REN "Rod Serling Pitch to Advertisers.avi" "Twilight Zone - s01e00 - Rod Serling Pitch to Advertisers.avi"
REN "Where is Everybody?.avi" "Twilight Zone - s01e01 - Where is Everybody?.avi"
REN "One for the Angels.avi" "Twilight Zone - s01e02 - One for the Angels.avi"
REN "Mr. Denton on Doomsday.avi" "Twilight Zone - s01e03 - Mr. Denton on Doomsday.avi"
REN "The Sixteen-Millimeter Shrine.avi" "Twilight Zone - s01e04 - The Sixteen-Millimeter Shrine.avi"
REN "Walking Distance.avi" "Twilight Zone - s01e05 - Walking Distance.avi"
REN "Escape Clause.avi" "Twilight Zone - s01e06 - Escape Clause.avi"
REN "The Lonely.avi" "Twilight Zone - s01e07 - The Lonely.avi"
REN "Time Enough at Last.avi" "Twilight Zone - s01e08 - Time Enough at Last.avi"
REN "Perchance to Dream.avi" "Twilight Zone - s01e09 - Perchance to Dream.avi"
REN "Judgment Night.avi" "Twilight Zone - s01e10 - Judgment Night.avi"
REN "And When the Sky Was Opened.avi" "Twilight Zone - s01e11 - And When the Sky Was Opened.avi"
REN "What You Need.avi" "Twilight Zone - s01e12 - What You Need.avi"
REN "The Four of Us are Dying.avi" "Twilight Zone - s01e13 - The Four of Us are Dying.avi"
REN "Third From the Sun.avi" "Twilight Zone - s01e14 - Third From the Sun.avi"
REN "I Shot an Arrow into the Air.avi" "Twilight Zone - s01e15 - I Shot an Arrow into the Air.avi"
REN "The Hitch-Hiker.avi" "Twilight Zone - s01e16 - The Hitch-Hiker.avi"
REN "The Fever.avi" "Twilight Zone - s01e17 - The Fever.avi"
REN "The Last Flight.avi" "Twilight Zone - s01e18 - The Last Flight.avi"
REN "The Purple Testament.avi" "Twilight Zone - s01e19 - The Purple Testament.avi"
REN "Elegy.avi" "Twilight Zone - s01e20 - Elegy.avi"
REN "Mirror Image.avi" "Twilight Zone - s01e21 - Mirror Image.avi"
REN "The Monsters are Due on Maple Street.avi" "Twilight Zone - s01e22 - The Monsters are Due on Maple Street.avi"
REN "A World of Difference.avi" "Twilight Zone - s01e23 - A World of Difference.avi"
REN "Long Live Walter Jameson.avi" "Twilight Zone - s01e24 - Long Live Walter Jameson.avi"
REN "People Are Alike All Over.avi" "Twilight Zone - s01e25 - People Are Alike All Over.avi"
REN "Execution.avi" "Twilight Zone - s01e26 - Execution.avi"
REN "The Big Tall Wish.avi" "Twilight Zone - s01e27 - The Big Tall Wish.avi"
REN "A Nice Place to Visit.avi" "Twilight Zone - s01e28 - A Nice Place to Visit.avi"
REN "Nightmare as a Child.avi" "Twilight Zone - s01e29 - Nightmare as a Child.avi"
REN "A Stop at Willoughby.avi" "Twilight Zone - s01e30 - A Stop at Willoughby.avi"
REN "The Chaser.avi" "Twilight Zone - s01e31 - The Chaser.avi"
REN "A Passage for Trumpet.avi" "Twilight Zone - s01e32 - A Passage for Trumpet.avi"
REN "Mr. Bevis.avi" "Twilight Zone - s01e33 - Mr. Bevis.avi"
REN "The After Hours.avi" "Twilight Zone - s01e34 - The After Hours.avi"
REN "The Mighty Casey.avi" "Twilight Zone - s01e35 - The Mighty Casey.avi"
REN "A World of His Own.avi" "Twilight Zone - s01e36 - A World of His Own.avi"
REN "King Nine Will Not Return.avi" "Twilight Zone - s02e01 - King Nine Will Not Return.avi"
REN "The Man in the Bottle.avi" "Twilight Zone - s02e02 - The Man in the Bottle.avi"
REN "Nervous Man in a Four Dollar Room.avi" "Twilight Zone - s02e03 - Nervous Man in a Four Dollar Room.avi"
REN "A Thing About Machines.avi" "Twilight Zone - s02e04 - A Thing About Machines.avi"
REN "The Howling Man.avi" "Twilight Zone - s02e05 - The Howling Man.avi"
REN "The Eye of the Beholder.avi" "Twilight Zone - s02e06 - The Eye of the Beholder.avi"
REN "Nick of Time.avi" "Twilight Zone - s02e07 - Nick of Time.avi"
REN "The Lateness of the Hour.avi" "Twilight Zone - s02e08 - The Lateness of the Hour.avi"
REN "The Trouble with Templeton.avi" "Twilight Zone - s02e09 - The Trouble with Templeton.avi"
REN "A Most Unusual Camera.avi" "Twilight Zone - s02e10 - A Most Unusual Camera.avi"
REN "Night of the Meek.avi" "Twilight Zone - s02e11 - Night of the Meek.avi"
REN "Dust.avi" "Twilight Zone - s02e12 - Dust.avi"
REN "Back There.avi" "Twilight Zone - s02e13 - Back There.avi"
REN "The Whole Truth.avi" "Twilight Zone - s02e14 - The Whole Truth.avi"
REN "The Invaders.avi" "Twilight Zone - s02e15 - The Invaders.avi"
REN "A Penny For Your Thoughts.avi" "Twilight Zone - s02e16 - A Penny For Your Thoughts.avi"
REN "Twenty-Two.avi" "Twilight Zone - s02e17 - Twenty-Two.avi"
REN "The Odyssey of Flight 33.avi" "Twilight Zone - s02e18 - The Odyssey of Flight 33.avi"
REN "Mr. Dingle, the Strong.avi" "Twilight Zone - s02e19 - Mr. Dingle, the Strong.avi"
REN "Static.avi" "Twilight Zone - s02e20 - Static.avi"
REN "The Prime Mover.avi" "Twilight Zone - s02e21 - The Prime Mover.avi"
REN "Long Distance Call.avi" "Twilight Zone - s02e22 - Long Distance Call.avi"
REN "A Hundred Yards over the Rim.avi" "Twilight Zone - s02e23 - A Hundred Yards over the Rim.avi"
REN "The Rip Van Winkle Caper.avi" "Twilight Zone - s02e24 - The Rip Van Winkle Caper.avi"
REN "The Silence.avi" "Twilight Zone - s02e25 - The Silence.avi"
REN "Shadow Play.avi" "Twilight Zone - s02e26 - Shadow Play.avi"
REN "The Mind and the Matter.avi" "Twilight Zone - s02e27 - The Mind and the Matter.avi"
REN "Will the Real Martian Please Stand Up.avi" "Twilight Zone - s02e28 - Will the Real Martian Please Stand Up.avi"
REN "The Obsolete Man.avi" "Twilight Zone - s02e29 - The Obsolete Man.avi"
REN "Two.avi" "Twilight Zone - s03e01 - Two.avi"
REN "The Arrival.avi" "Twilight Zone - s03e02 - The Arrival.avi"
REN "The Shelter.avi" "Twilight Zone - s03e03 - The Shelter.avi"
REN "The Passersby.avi" "Twilight Zone - s03e04 - The Passersby.avi"
REN "A Game of Pool.avi" "Twilight Zone - s03e05 - A Game of Pool.avi"
REN "The Mirror.avi" "Twilight Zone - s03e06 - The Mirror.avi"
REN "The Grave.avi" "Twilight Zone - s03e07 - The Grave.avi"
REN "It's a Good Life.avi" "Twilight Zone - s03e08 - It's a Good Life.avi"
REN "Deaths-Head Revisited.avi" "Twilight Zone - s03e09 - Deaths-Head Revisited.avi"
REN "The Midnight Sun.avi" "Twilight Zone - s03e10 - The Midnight Sun.avi"
REN "Still Valley.avi" "Twilight Zone - s03e11 - Still Valley.avi"
REN "The Jungle.avi" "Twilight Zone - s03e12 - The Jungle.avi"
REN "Once Upon a Time.avi" "Twilight Zone - s03e13 - Once Upon a Time.avi"
REN "Five Characters in Search of an Exit.avi" "Twilight Zone - s03e14 - Five Characters in Search of an Exit.avi"
REN "A Quality of Mercy.avi" "Twilight Zone - s03e15 - A Quality of Mercy.avi"
REN "Nothing in the Dark.avi" "Twilight Zone - s03e16 - Nothing in the Dark.avi"
REN "One More Pallbearer.avi" "Twilight Zone - s03e17 - One More Pallbearer.avi"
REN "Dead Man's Shoes.avi" "Twilight Zone - s03e18 - Dead Man's Shoes.avi"
REN "The Hunt.avi" "Twilight Zone - s03e19 - The Hunt.avi"
REN "Showdown with Rance McGrew.avi" "Twilight Zone - s03e20 - Showdown with Rance McGrew.avi"
REN "Kick the Can.avi" "Twilight Zone - s03e21 - Kick the Can.avi"
REN "A Piano in the House.avi" "Twilight Zone - s03e22 - A Piano in the House.avi"
REN "The Last Rites of Jeff Myrtlebank.avi" "Twilight Zone - s03e23 - The Last Rites of Jeff Myrtlebank.avi"
REN "To Serve Man.avi" "Twilight Zone - s03e24 - To Serve Man.avi"
REN "The Fugitive.avi" "Twilight Zone - s03e25 - The Fugitive.avi"
REN "Little Girl Lost.avi" "Twilight Zone - s03e26 - Little Girl Lost.avi"
REN "Person or Persons Unknown.avi" "Twilight Zone - s03e27 - Person or Persons Unknown.avi"
REN "The Little People.avi" "Twilight Zone - s03e28 - The Little People.avi"
REN "Four O'Clock.avi" "Twilight Zone - s03e29 - Four O'Clock.avi"
REN "Hocus-Pocus and Frisby.avi" "Twilight Zone - s03e30 - Hocus-Pocus and Frisby.avi"
REN "The Trade-Ins.avi" "Twilight Zone - s03e31 - The Trade-Ins.avi"
REN "The Gift.avi" "Twilight Zone - s03e32 - The Gift.avi"
REN "The Dummy.avi" "Twilight Zone - s03e33 - The Dummy.avi"
REN "Young Man's Fancy.avi" "Twilight Zone - s03e34 - Young Man's Fancy.avi"
REN "I Sing the Body Electric.avi" "Twilight Zone - s03e35 - I Sing the Body Electric.avi"
REN "Cavender is Coming.avi" "Twilight Zone - s03e36 - Cavender is Coming.avi"
REN "The Changing of the Guard.avi" "Twilight Zone - s03e37 - The Changing of the Guard.avi"
REN "In His Image.avi" "Twilight Zone - s04e01 - In His Image.avi"
REN "The Thirty-Fathom Grave.avi" "Twilight Zone - s04e02 - The Thirty-Fathom Grave.avi"
REN "Valley of the Shadow.avi" "Twilight Zone - s04e03 - Valley of the Shadow.avi"
REN "He's Alive.avi" "Twilight Zone - s04e04 - He's Alive.avi"
REN "Mute.avi" "Twilight Zone - s04e05 - Mute.avi"
REN "Death Ship.avi" "Twilight Zone - s04e06 - Death Ship.avi"
REN "Jess-Belle.avi" "Twilight Zone - s04e07 - Jess-Belle.avi"
REN "Miniature.avi" "Twilight Zone - s04e08 - Miniature.avi"
REN "Printer's Devil.avi" "Twilight Zone - s04e09 - Printer's Devil.avi"
REN "No Time Like the Past.avi" "Twilight Zone - s04e10 - No Time Like the Past.avi"
REN "The Parallel.avi" "Twilight Zone - s04e11 - The Parallel.avi"
REN "I Dream of Genie.avi" "Twilight Zone - s04e12 - I Dream of Genie.avi"
REN "The New Exhibit.avi" "Twilight Zone - s04e13 - The New Exhibit.avi"
REN "Of Late I Think of Cliffordville.avi" "Twilight Zone - s04e14 - Of Late I Think of Cliffordville.avi"
REN "The Incredible World of Horace Ford.avi" "Twilight Zone - s04e15 - The Incredible World of Horace Ford.avi"
REN "On Thursday We Leave For Home.avi" "Twilight Zone - s04e16 - On Thursday We Leave For Home.avi"
REN "Passage on the Lady Anne.avi" "Twilight Zone - s04e17 - Passage on the Lady Anne.avi"
REN "The Bard.avi" "Twilight Zone - s04e18 - The Bard.avi"
REN "In Praise of Pip.avi" "Twilight Zone - s05e01 - In Praise of Pip.avi"
REN "Steel.avi" "Twilight Zone - s05e02 - Steel.avi"
REN "Nightmare at 20,000 Feet.avi" "Twilight Zone - s05e03 - Nightmare at 20,000 Feet.avi"
REN "A Kind of a Stopwatch.avi" "Twilight Zone - s05e04 - A Kind of a Stopwatch.avi"
REN "The Last Night of a Jockey.avi" "Twilight Zone - s05e05 - The Last Night of a Jockey.avi"
REN "Living Doll.avi" "Twilight Zone - s05e06 - Living Doll.avi"
REN "The Old Man in the Cave.avi" "Twilight Zone - s05e07 - The Old Man in the Cave.avi"
REN "Uncle Simon.avi" "Twilight Zone - s05e08 - Uncle Simon.avi"
REN "Probe 7 - Over and Out.avi" "Twilight Zone - s05e09 - Probe 7 - Over and Out.avi"
REN "The 7th is Made Up of Phantoms.avi" "Twilight Zone - s05e10 - The 7th is Made Up of Phantoms.avi"
REN "A Short Drink from a Certain Fountain.avi" "Twilight Zone - s05e11 - A Short Drink from a Certain Fountain.avi"
REN "Ninety Years Without Slumbering.avi" "Twilight Zone - s05e12 - Ninety Years Without Slumbering.avi"
REN "Ring-A-Ding Girl.avi" "Twilight Zone - s05e13 - Ring-A-Ding Girl.avi"
REN "You Drive.avi" "Twilight Zone - s05e14 - You Drive.avi"
REN "The Long Morrow.avi" "Twilight Zone - s05e15 - The Long Morrow.avi"
REN "The Self-Improvement of Salvadore Ross.avi" "Twilight Zone - s05e16 - The Self-Improvement of Salvadore Ross.avi"
REN "Number Twelve Looks Just Like You.avi" "Twilight Zone - s05e17 - Number Twelve Looks Just Like You.avi"
REN "Black Leather Jackets.avi" "Twilight Zone - s05e18 - Black Leather Jackets.avi"
REN "Night Call.avi" "Twilight Zone - s05e19 - Night Call.avi"
REN "From Agnes - With Love.avi" "Twilight Zone - s05e20 - From Agnes - With Love.avi"
REN "Spur of the Moment.avi" "Twilight Zone - s05e21 - Spur of the Moment.avi"
REN "An Occurrence at Owl Creek Bridge.avi" "Twilight Zone - s05e22 - An Occurrence at Owl Creek Bridge.avi"
REN "Queen of the Nile.avi" "Twilight Zone - s05e23 - Queen of the Nile.avi"
REN "What's in the Box.avi" "Twilight Zone - s05e24 - What's in the Box.avi"
REN "The Masks.avi" "Twilight Zone - s05e25 - The Masks.avi"
REN "I Am the Night - Color Me Black.avi" "Twilight Zone - s05e26 - I Am the Night - Color Me Black.avi"
REN "Sounds and Silences.avi" "Twilight Zone - s05e27 - Sounds and Silences.avi"
REN "Caesar and Me.avi" "Twilight Zone - s05e28 - Caesar and Me.avi"
REN "The Jeopardy Room.avi" "Twilight Zone - s05e29 - The Jeopardy Room.avi"
REN "Stopover in a Quiet Town.avi" "Twilight Zone - s05e30 - Stopover in a Quiet Town.avi"
REN "The Encounter.avi" "Twilight Zone - s05e31 - The Encounter.avi"
REN "Mr. Garrity and the Graves.avi" "Twilight Zone - s05e32 - Mr. Garrity and the Graves.avi"
REN "The Brain Center at Whipple's.avi" "Twilight Zone - s05e33 - The Brain Center at Whipple's.avi"
REN "Come Wander with Me.avi" "Twilight Zone - s05e34 - Come Wander with Me.avi"
REN "The Fear.avi" "Twilight Zone - s05e35 - The Fear.avi"
REN "The Bewitchin' Pool.avi" "Twilight Zone - s05e36 - The Bewitchin' Pool.avi"

mulebreath

17-07-2010 08:35:53

Presto and done. Thanks much for that, Mech_Man, really appreciate the help.

After spending most of the morning screwing with the program, I've ended up using a manual solution (with your kind help). I'm not a programmer but I don't understand how taking a file called To Serve Man.avi or To Serve a Man.avi or To Serve the Man.avi or The, To Serve Man.avi and checking it against a Twilight Zone directory wouldn't be able to come up with the right match. It makes me think that all those O'Reilly Perl or Regular Expression books are all way overpriced. I've just used too many programs, granted written by very talented people, that can take you to the moon but can't turn a screw. But I'm sure I sound like the non-programmer I am. Thanx again.

DedTV

18-07-2010 20:44:57

Gotta tip my hat to Mech_Man for that! Always nice to see people willing to help out others.

The reason TV rename doesn't recognize the file names is because it's just not a feasible way to manage TV Shows globally. In most cases people start out with downloaded files which have a thousand different variations of names like Twilight_Zone_-_Sxxexx_-_TO.SERVE.MAN_-_PREAIR.TVRip.NozalaRox.XviD.NoGrp.avi. Those kinds of files are what the "rename" function of TV Rename is mostly directed at. Trying to create a RegEx that could figure out what the file name is in a mess like that, and all the thousands of variations like it, would be impossible.
Plus, multi-episode files and DVD Rips would be especially nightmarish. For example, That '70s Show S1D1 DVD would be named "That '70s Show - S01E01E02E03E04E05E06E07 - That '70s Pilot + Eric's Birthday + Streaking + Battle of the Sexists + Eric's Burger Job + The Keg + That Disco Episode.iso". If TV Rename used names, it wouldn't even be able to handle shows like Animaniacs as the overall episodes names are so long they break Windows. Add to that the way people are constantly futzing with the way shows are listed on the TVDB and other databases, and using names becomes a massive headache.
So TV Rename, and most media players like XBMC, use season and episode numbers to identify files because it's just the most reliable way to do it in most cases. There's specific cases like yours where using the file name could work and using the numbers doesn't work in all cases (Mythbusters for example). But overall, season and episode numbers is far more reliable and convenient.


A couple tips/suggestions for the future (feel free to ignore them :D ):
When you have a show like that, add the show to TV Rename and edit the setting to have it use a folder per season, run a scan, let TV Rename create the season folders, and then put the files into their respective season folders. In some (rare, but always worth trying) cases, even if TV Rename can't identify the files when they're out in the wild, the added info gained from them being in their show folders is enough for TV Rename to then recognize them for what they are.

Another tip is to download and learn how to use RenameMaster. For example, assuming the way they were originally named was that 001 was S01E01 and they continued in the proper order, you could have broken the files up into folders of their respective seasons and then used RenameMaster with "add to Beginning" rules like "S01E?n02? - " and "S02E?n02? - " which would have renamed them to S01E01 - 001 - show 1.avi and S01e02 - show 2.avi at which point TV Rename would have had enough info to pick them up and then rename them correctly. Just make sure you preview everything and check the results carefully so you don't make a bigger mess by clicking apply too hastily (I speak from sad experience :oops:). Another similar tool is Bulk Rename Tool which is a lot more robust and can do some amazing things, but its more geared to people with some knowledge of programming and is a lot harder to learn how to use and is definitely a "take you to the moon but can't turn a screw" kind of program :D

And lastly, consider using a media center app like XBMC or Boxee. That way you don't have to deal with episode names at all. I use TV Rename to strip the names off my files entirely and just have them named "Twilight Zone - S05E03.avi" because once XBMC scrapes them, it'll tell me that the episode is named "Nightmare at 20,000 Feet", what the plot of the episode is, that it stars William Shatner, what codecs the file uses, and all kinds of other info I could never fit into the file name.

mulebreath

19-07-2010 12:34:42

Great info, I stand corrected or at least enlghtened. I will definitely look into your suggestions as I have a pile of tv mess to incorporate into Boxee.
Must say that the quality of your forums and community is very impressive, thanks.

MrEMan

23-08-2010 22:55:54

Another useful feature for the occasional file is Browse For... when viewing your missing list.
Excellent if you know you have the file but it's not being reconised.

@jenniferhoops01 - maybe you could try the program first before asking such a question.