INTERACT FORUM
More => Old Versions => Media Center 15 (Development Ended) => Topic started by: dasfoo on October 10, 2010, 01:50:44 am
-
I have a lot of video files I'm now trying to manage with MC15, which I've used for many years for my music files. I've run into a new quirk in the File Renaming feature that never came up when managing my music, because I organize them differently.
I'd like to organize the files primarily by genre, then by grouping, then by series. However, while all videos have a Genre assigned, not all have an applicable Grouping or Series. A majority have neither. Some have both. Some one or the other.
When I use the bulk renaming feature to move the files into the preferred directory structure, I'm getting results like this for a majority of the files:
Genre\Unknown Grouping\Unknown Series\Name.m4v
It would be great if instead it could skip null fields on a per file basis.
So, videos with only a genre specified would be written:
Genre\Name.m4v
Those with a Genre and Grouping:
Genre\Grouping\Name.m4v
Those with a Genre and Series:
Genre\Series\Name.m4v
Those with all fields:
Genre\Grouping\Series\Name.m4v
As it is now, I have to do separate renaming batches for each configuration to avoid creating "Unknown Field" directories for any file that lacks an inapplicable value.
-
copy the blue text and paste into the directory field of the rename tool:
[Genre]if(isequal([Grouping],unknown,8),,\[Grouping])if(isequal([Series],unknown,8),,\[Series])\
Why isequal, and not isempty? Read more here (http://wiki.jriver.com/index.php?title=Media_Center_expression_language#IsEmpty.28....29:_Tests_to_see_if_a_field_is_empty), paying particular attention to the third example.
-marko
-
copy the blue text and paste into the directory field of the rename tool:
[Genre]if(isequal([Grouping],unknown,8),,\[Grouping])if(isequal([Series],unknown,8),,\[Series])\
Why isequal, and not isempty? Read more here (http://wiki.jriver.com/index.php?title=Media_Center_expression_language#IsEmpty.28....29:_Tests_to_see_if_a_field_is_empty), paying particular attention to the third example.
-marko
That looks delightful! I'll give it a try, thanks.
UPDATE: Perfect. Thanks a lot.