My MusicBrainz Picard file naming script

MusicBrainz Picard is a free and open-source software application for identifying, tagging, and organizing digital audio recordings. It was developed by the MetaBrainz Foundation, a non-profit company that also operates the MusicBrainz database.

Picard identifies audio files and Compact Discs by comparing either their metadata or their acoustic fingerprints with records in the database. Audio file metadata (or “tags”) are a means for storing information about a recording in the file. When Picard identifies an audio file, it can add new information to it, such as the recording artist, the album title, the record label, and the date of release.[3] In some cases, it can also add more detailed information, such as lists of performers and their instruments. The source of this information is the MusicBrainz database, which is curated by volunteers. The more information the database has about a recording, the more Picard can embed in users’ audio files.

This is my file naming script.

$left($if2( %artistsort%),1)/$if2(%artist%)/$if($ne(%artist%,),%album%/)$if($gt(%totaldiscs%,1),%discnumber%-,)$if($ne(%artist%,),$num(%tracknumber%,2) ,)$if(%_multiartist%,%artist% - ,)%title%