![]() ![]() (I have to say, it really is hard to explain beyond that. (Note if you have an album name folder that actually begins "CD-" the whole thing would not work) So the $if is literally saying "IF the first 3 characters of the folder name match the text "CD-", THEN write this ".\") IF ( "condition is true", THEN write this, ELSE write that ) $if functions perform a test that read like. If it matches the second string CD-, the $if "condition is true". $left(%directory%,3) is the first string it checks. $stricmp($left(%directory%,3),CD-) is doing a text match comparison of two strings, looking for the same characters. H:\Music\World\USA\Kendrick Lamar\Section80\ CD-1\01 Title.FLAC No, $left(%directory%,3) = the first 3 characters of the folder name = "CD-" (in this case). ![]() In this case I thought you could test for the %directory% name, but you could also test a metadata field.Īs for $left(%directory%,3),CD-) - Because you say 3 it should remove 3 characters of the %directorty% The "BK" folder is not part of the track metadata (not part of the %path%) - therefore foobar does not see it, so you have to test for something else that foobar has indexed as part of the library. $stricmp(str1,str2) - Why is it necessary for this string?īecause title formatting can only test the current track metadata. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |