I try to rename files, but it looks like these files is not renamed as they should, there is also no folder. Just saved directly a root.
The renaming script it the default.
Can anyone see why it is not working?
How can I script this output: <Album Artist>/<Year> - <release name> (<release type>)/<disc nr>-<track nr> - <Track Artist> - <Title>
Example: System of a Down/2001 - Toxicity (Album)/1-01 - System of a Down - Prison Song
Welcome to the community. You came to the right place with your question, and we’ll try to help you through the process.
It’s tough to tell from the info you provided, but it appears that you are not matching the files in the clustering pane to the corresponding tracks in the Album pane. See the Matching Files to Tracks section in the documentation for more information. My guess is that the renaming script is trying to use metadata values such as “albumartist” which does not exist in the files’ existing metadata. In addition, there should be a slash “/” at the end of the first line of the script to force the creation of a directory.
I think that the script to do the naming the way that you want would be something like:
$if2(%albumartist%,%artist%,No Artist Information Available)/
$left($if2(%date%,0000),4) - %album% \(%_primaryreleasetype%\)/
$if2(%discnumber%,1)-$num(%tracknumber%,2) - %artist% - %title%
Note that this will always include a disc number, even if there is only one disc in the release. To leave the disc number off of single-disc releases, change the final line to: