Code: Select all
Movies/{collection ? {"${collection}/${y}.${n.colon("|")}/${collection.replace(" Collection","")}[${ci}]."} : {"${ny.colon("|")}/"}}{ny.colon("|")}{".${lang}"}
Movies/Avatar Collection/2009.Avatar/Avatar[1].Avatar (2009).mkv
Expected result when Movie is not in Collection (else-part):
Movies/Avatar (2009)/Avatar (2009).mkv
Actual result when Move is not in Collection:
Movies/Avatar (2009.mkv
Conclusion:
Movies that are part of a collection are processed ok.

The expected else-part of the format (when Movie is not part of a collection) is however omitted in the resulting filename.

When I test the format in the Windows application with an optional if-statement "(collection == null)" the result of the else-part is formatted ok (on screen that is).
What am I doing wrong?