INTERACT FORUM

Please login or register.

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

Author Topic: Need help with creating a smartlist  (Read 958 times)

Osho

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1213
Need help with creating a smartlist
« on: December 06, 2010, 04:47:21 pm »

Hi,

I like to organize my music in a directory structure in a specific way. All music files for an album are in a directory which follows the naming convention - H:\Sorted Music\Genre\Album Artist(auto)\Album\. I used Assorted for Album Artist(auto) for multiple artists album. Each file is named [Track #] - [Name] - [Artist] - [Album] (with the appropriate suffix of course).

I am trying to write a smart-list expression that will return all music file-names that are not organized in the structure with appropriate directory and file-names as described above. Is this possible to do? My attempt at using [Genre] etc. in the Rules did not seem to work correctly.

Thanks,
Osho
Logged

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 9165
Re: Need help with creating a smartlist
« Reply #1 on: December 07, 2010, 07:09:04 am »

I would go for two separate lists, one for folder path and another for file names.. or, create a panes based viewscheme that includes all audio, and make the first pane a 'search list' that contains the two separate searches. You could join the two expressions together, but again, I'm short on testing time and am more sure the two below will work independently than I am that they will continue to work if cojoined.

Folders
[=isequal([filename (path)],H:\Sorted Music\[Genre]\if(isequal([Album Artist (Auto)],multiple,8),Assorted,[Album Artist (Auto)])\[Album]\,1)]=0

File names
[=isequal([filename (name)],padnumber([Track #],2) - [Name] - [Artist] - [Album].[file type],1)]=0

Try those for size for now. They will (should) return the mismatches, but there is one snag that I haven't accounted for, and unfortunately, do not have the time right now, and that is that these rules will return files where the tags contain illegal windows filename characters as wrong, when in fact, they could well be correct.

This is because the illegal characters are replace with underscores in the physical file path. Think things such as colons and question marks...
These can be worked around, but make the expression a tad more complex... too complex to just write off-the-cuff. I'll try to find the time to help you with those, but it could take a day or two as things are crazy busy round here atm.

If you want, you could take such files out of the picture altogether for now by adding a rule such as -[file name]=_

Hope that's enough to get you started at least,
Regards,
-marko.

Osho

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1213
Re: Need help with creating a smartlist
« Reply #2 on: December 07, 2010, 01:48:43 pm »

Many thanks marko - I will try it out today.

Thanks,
Osho
Logged
Pages: [1]   Go Up