ifelse(isequal([media type],Audio),I should point out that I use some alternative takes on some standard MC fields, like [sub-type] instead of 'media sub type', for some added flexibility.
D:\AUDIO\,
isequal([media type],Video),
\\ShackServer\VIDEO\,
isequal([media type],Image),
if(isequal([sub-type],Film Still),
\\ShackServer\VIDEO\Film\,
D:\IMAGE\),
1,
D:\DOCUMENTS\MISCELLANEOUS\)
if(isequal([sub-type],Audiobook),And here's the more readable version:
AUDIOBOOK\[Artist]\ifelse(!isempty([Series Title]),[Series Title]\[Book #] - )[Album],
if(isempty([sub-type]),
MUSIC\if(isequal([source],archive,8),ARCHIVE,ACQUIRED)\[AssortedOrArtist]\[Album],
MISC\[sub-type]\ifelse(!isempty([Artist]),[artist]\,!isempty([Album]),[album]\,1,)))
Audiobooks in a series; | D:\AUDIO\AUDIOBOOKS\Artist\Series Title\Book # - Album\ |
Audiobooks NOT in a series; | D:\AUDIO\AUDIOBOOKS\Artist\Album\ |
Music ripped from my CD collection; | D:\AUDIO\MUSIC\ARCHIVE\Artist\Album\ |
Other music; | D:\AUDIO\MUSIC\ACQUIRED\Artist\Album\ |
Any other type of audio; | D:\AUDIO\MISC\Sub Type\Artist\Album\ - unless Artist or Album is empty, in which case either or both are omitted |
if(IsEmpty([artist]),The reason for this is that that feature won't work when using an expression in the 'Rule' box. I'm sure it could be streamlined too, but it serves for the moment.
if(IsEmpty([album]),
Unknown Artist\Unknown Album,
Unknown Artist\[album]),
If(IsEqual(Mid([album type]),M),
Assorted,
[artist])\if(IsEmpty([album]),
Unknown Album,
[album]))
if(isequal([sub-type],Film),The basic logic is:
FILM\ifelse(!isempty([series title]),[series title]\[episode #] - )[name]\,
if(isequal([sub-type],TV Show),
TV SHOW\[tv show]\ifelse(!isempty([series #]),[series #]\,1,),
MISC\[sub-type]\ifelse(!isempty([Artist]),[artist]\,!isempty([Album]),[album]\,1,)))
Films in a series; | \\ShackServer\VIDEO\FILM\Series Title\Episode # - Name\ |
Films NOT in a series; | \\ShackServer\VIDEO\FILM\Name\ |
TV Shows | \\ShackServer\VIDEO\TV SHOW\TV Show\Series #\ |
Any other type of video; | \\ShackServer\VIDEO\MISC\Sub Type\Artist\Album\ - unless Artist or Album is empty, in which case either or both are omitted |
(If anyone wants a copy of that NotePad++ file to import, you can get it here: link (http://www.squarestarmedia.com/_misc/jrmcx.zip))
- 1 - I use NotePad++ as a text editor in Windows, and I've created a language definition which presents the expressions in a much more readable way (http://www.squarestarmedia.com/img/_tmp/jrmcxNP++.PNG)
ifelse(isequal([sub-type],Film Still),
[album]\Still\,
isequal([sub-type],Scan,8),
SCANS\,
isequal([sub-type],Graphic Design),
GRAPHIC DESIGN\[genre]\,
isequal([sub-type],Photograph),
PHOTOGRAPHY\if(regex(:[artist]:, /#^:(unknown|none)?:$#/),
{Unknown Artists},
[artist]\)
if(regex(:[camera]:, /#^:(unknown|none)?:$#/),
,
[camera]\)
if(regex(:[country]:, /#^:(unknown|none)?:$#/),
,
[country]\)
if(regex(:[region]:, /#^:(unknown|none)?:$#/),
,
[region]\),
isempty([sub-type]),
,
1,
MISC\if(ifelse(!isequal([sub-type],CGI),
ifelse(!isequal([sub-type],Handmade),
[sub-type]\)),
[sub-type]\,
[sub-type]\ifelse(!isempty([genre]),[genre]\)))
Film Stills; | \\ShackServer\VIDEO\FILM\Album\Stills\ - I have to tag Film Still [album] tags with the same name as my Film videos' [name] tags in order to get them in the same folder as the films. This is not optimal for films in a series, because I have to remember to use the episode number in the album name and I have to get film [series title] in there too, so actually this only works for films not in a series. Something I need to think more about. |
Scans; | D:\IMAGE\SCANS\ |
Object Scans; | D:\IMAGE\SCANS\ |
Graphic Design; | D:\IMAGE\GRAPHIC DESIGN\Genre |
Photgraphs; | D:\IMAGE\PHOTOGRAPHY\Artist\Camera\Country\Region\ |
CGIs; | D:\IMAGE\MISC\CGI\Genre\ |
Handmade; | D:\IMAGE\MISC\Handmade\Genre\ |
Images with no Sub Type; | D:\IMAGE\ |
Any other images; | D:\IMAGE\MISC\Sub Type\ |
ifelse(isequal([media type],Audio),This uses the previous calculated fields to sort all Media into their correct folders once they've been tagged properly. Data goes to D:\DOCUMENTS\MICSCELLANEOUS\File Type\
[move audio dir],
isequal([media type],Video),
[move video dir],
isequal([media type],Image),
[move image dir],
1,
[file type]\)
if(regex(:[camera]:, /#^:(unknown|none)?:$#/),
,
[camera]\)
if(regex(:[country]:, /#^:(unknown|none)?:$#/),
,
[country]\)
if(regex(:[region]:, /#^:(unknown|none)?:$#/),
,
[region]\),
ifelse(!regex(:[camera]:, /#^:(unknown|none)?:$#/), [camera]\)
ifelse(!regex(:[country]:, /#^:(unknown|none)?:$#/), [country]\)
ifelse(!regex(:[region]:, /#^:(unknown|none)?:$#/), [region]\),
ifelse(isequal([media type],Audio),
D:\AUDIO\,
isequal([media type],Video),
\\ShackServer\VIDEO\,
isequal([media type],Image),
if(isequal([sub-type],Film Still),
\\ShackServer\VIDEO\Film\,
D:\IMAGE\),
1,
D:\DOCUMENTS\MISCELLANEOUS\)
ifelse(
isequal([media type],Audio), \\Lizzy\Media (M)\Music\,
isequal([media type],video), \\Lizzy\Media (M)\Video\),1,
C:\User\Lise\Documents\)
replace([my base path],_,\)
from: \\MAL\users\Public\ to \\Lizzy\Media (M)\Music\,0,\Lizzy\Media (M)\Video,1,C_\Users\Lise\Dcouments\