INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Finding incorrect filenames  (Read 1212 times)

jkrzok

  • Regular Member
  • World Citizen
  • ***
  • Posts: 184
  • Change this by choosing profile
Finding incorrect filenames
« on: December 03, 2007, 09:48:21 am »

Is it possible to create a smartlist or something that would find any files not named in a "correct" format? I try to name all my files like so:

[album artist (auto)]-[album]\[track#] - [name]

I know I could easily rename my library using this rule but there are some files (especially multi-disc albums) that go by a different rule (adding the disc number before the track number in the file name).

Can someone help this obsessive-compulsive?
Logged

ProblemChild

  • Junior Woodchuck
  • **
  • Posts: 97
  • But I don't wanna be the same as everybody else...
Re: Finding incorrect filenames
« Reply #1 on: December 03, 2007, 11:39:52 am »

Could you create some user fields,

ie [tempalbumartistauto], [tempalbum],[temptrack],[tempname]

use Fill Properties from Filename to fill them, then use smartlist to find them, with the configuration of the smartlist
dependent upon how your errors were reflected in these temporary user fields?
Logged

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Finding incorrect filenames
« Reply #2 on: December 03, 2007, 11:42:08 am »

Either would be possible, but a much easier route would be to create an expression to use in the Rename Files from Properties that does an If statement and checks to see if [Disc #] exists and if so prints it and if not does nothing.  Check the expression language docs in the Wiki.  You'll need the If statement and the IsEmpty statement.  If the IsEmpty statement returns 1 (true) then it will make the If statement result in True.

You should be able to figure it out.  I know Marko has described it here before as well ... Try searching.

Then, you can just use your expression and rename them all.  If the files have a Disc # then it will add that to the file/folder name.  If not, then it won't.

I use this quite a bit.  If you can't figure it out, post back and I'll figure it out for you (or someone will).
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 9168
Re: Finding incorrect filenames
« Reply #3 on: December 03, 2007, 01:23:33 pm »

The same question was asked a while ago... http://yabb.jriver.com/interact/index.php?topic=32700.0

If you follow strict naming rules religiously, then, as glynor has stated, it would benefit you to have a couple of expressions to use in the rename from properties tool. If you need help with those, remember to list all templates used when renaming your files.

If you don't want that, and really only want to check for incorrectly named files, this is relatively easy to achieve by using the method outlined in the thread linked above. Note that that thread only deals with actual file names, not their paths, though incorporating paths is a simple addition to make.

Shout if you need more help.

-marko.

KingSparta

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 20063
Re: Finding incorrect filenames
« Reply #4 on: December 03, 2007, 07:46:25 pm »

why not just rename them from properties, MC will rename them if it needs to be changed.
Logged
Retired Military, Airborne, Air Assault, And Flight Wings.
Model Trains, Internet, Ham Radio, Music
https://MyAAGrapevines.com
https://centercitybbs.com
Fayetteville, NC, USA
Pages: [1]   Go Up