[Help] Renaming Uses Name of Variable


#1

When importing, the files are named exactly as written in the paths definition.

Result: “%the{albumartist)/(album)%if{$hasyear, ($year)}/%if{$multidisc,$disc-}$track. $artist - $title”

Expected: “Michael Jackson/Thriller (1982)/01. Michael Jackson - Wanna Be Startin’ Something.mp3”

Here’s a snapshot from my config.

   plugins: fetchart lastgenre inline embedart zero the fromfilename discogs 
   ...
   paths:
        default: %the{$albumartist)/$(album)%if{$hasyear, ($year)}/%if{$multidisc,$disc-}$track. $artist - $title
        comp: Compilations/%the($album)%if{$hasyear, ($year)}/%if{$multidisc,$disc-}$track. $artist - $title
        albumtype:soundtrack: Soundtracks/%the($album)%if{$hasyear, ($year)}/%if{$multidisc,$disc-}$track. $artist - $title
   item_fields:
        multidisc: 1 if disctotal > 1 else 0
        hasyear: 1 if year > 0 else 0

#2

Be sure to use curly braces, not parentheses.


#3

dang it…i closed the curly brace with a regular parenthesis. Thanks for the catch.