Hi,
Apologies for the delay in my reply. Work got incredibly busy leaving no time for my hobby helping here. I did have a half composed reply the other day but that got lost in a reboot so I shall have to start over.
The script as written is designed to find tracks in the following general layout:
<Media Folder>\[Music\]\<Artist>\<Album>\[D-]## <Name>.<Ext>
Where artist is album artist if present, or artist if present, or Unknown Artist if both are blank, or Compilations if part of a complication is set. The script can handle certain inconsistencies, such as missing track numbers, or a dash between the track number and the track name, etc. If a perfect match cannot be found the script can also use a fuzzy matching algorithm which can sometimes help if third party software has been used to edit tags and rename files. It should also cope when the usual structure has been flattened as it searches, the media folder, possible artist folders, and possible album folders within those. When it consistently fails then a new search pattern needs to be defined.
You've described your layout thus:
Z:\Audio\Albums\Commercial\Artist\[Year] Boxset Name\Disc 1 Boxset Album Name\Song Name.mp3
Are each of the parts of this either static, or derived from data in the tag? Could you perhaps show me a few concrete examples so that I could replicate the layout at my end, and then tweak the script such that it can successfully relink tracks in that layout?
tt2