INTERACT FORUM

More => Old Versions => Media Center 11 (Development Ended) => Topic started by: mesue on February 10, 2006, 11:00:18 pm

Title: Help with changes to renaming template
Post by: mesue on February 10, 2006, 11:00:18 pm
I'm trying to get things back the way they were after getting a new system and switching from MC 11.0 to 11.1.xxx. Can someone tell me what I need to modify in this file renaming template for directories:

[Artist]\If(IsEmpty([Date], 1), ,/FormatDate([Date], Year) - )[Album]

It's no longer doing the year correctly.

Also, can anyone please tell me EVERYTHING I need to back up for when I want to restore MC in the future? Apparently the library and the registry key alone doesn't cut it because I lost all my customized views (columns to show, saved presets), advanced expressions, and probably more I haven't found yet.
Title: Re: Help with changes to renaming template
Post by: PollyQ on February 11, 2006, 02:07:15 pm
For the date format, try adding a ",0", e.g.,

[Artist]\If(IsEmpty([Date], 1), ,/FormatDate([Date,0], Year) - )[Album]

This removes any default formatting.

Sorry, can't help with the backup question.
Title: Re: Help with changes to renaming template
Post by: marko on February 11, 2006, 02:55:40 pm
the forward slash before the formatdate doesn't look right either..

If there is a date, what end result are you after?

I think you're after something like Bob Dylan\(1976) - Desire

In my tests here, I could not get the parenthesis escaped correctly. MC would convert the forward slash to a backslash and start a new directory, then it would use the closing bracket to close the expression off prematurely.

this does it without the brackets:
if(isempty([date],1),[artist]\[album],[artist]\[date (year)] - [album])

regarding your backup:
your backup is fine. the problem for you is that v11.1 now saves custom views in the library folder, so, they'll need rebuilt. they'll be there in your 11.1 backups as you build them.
Title: Re: Help with changes to renaming template
Post by: mesue on February 11, 2006, 05:13:33 pm
No parenthesis. I'm after...
If there is a date: Bob Dylan\1976 - Desire
If there is no date: Bob Dylan\Desire

Thanks for the backup info.

Update: I got it! This works:
Code: [Select]
[Artist]\If(IsEmpty([Date], 1), ,[date (year)] - )[Album]