JK29
May 4, 2020, 12:29am
1
Alright guys… I’m a newbie… and I’ll throw myself on your mercy! I’ve been trying to figure this out on my own to no avail.
I’m looking for a simple code to return the follow structure
A folder in the root with the artist name… then “Artist Name - Song Name”
I’ve been trying this code from the repository (from @philn96 )
$set(_feat,$rsearch(%artist%,\(?<=\\sfeat\\.\).*|\(?<=\\sft\\.\).*|\(?<=\\sFt\\.\).*|\(?<=\\sFeat\\.\).*))
$set(_feat,$if(%_feat%,%_feat%,$rsearch(%artist%,\(?<=\\sfeat\\s\).*|\(?<=\\sft\\s\).*|\(?<=\\sFt\\s\).*|\(?<=\\sFeat\\s\).*)))
$set(artist,$if(%_feat%,$rreplace(%artist%, feat\\.?.*| Feat\\.?.*| Ft\\.?.*| ft\\.?.*,),%artist%))
%artist%/%artist% - %title%$if(%_feat%,$if($rsearch(%title%,\\sfeat\\.?|\\sFeat\\.?|\\sft\\.?|\\sFt\\.?),, feat.%_feat%),)
But it’s returning something that looks like this sometimes.
JK29
May 4, 2020, 2:13am
2
$if2(%_artists_album_primary_std%,%_artists_album_primary_cred%,%albumartist%,%artist%)/
$if(%albumartist%,%artist% - ,)%title%
I think this may have fixed it. (It did for that specific example. I’ll have to try it on some more. Any ways to make this more rock solid?
JK29
May 4, 2020, 2:18am
3
The above code seems to be doing most of what I want. It did split 2 of my 20 Jerry Lee Lewis tracks into various artists? But it kept the names of the files right:
In that case try:
$set(_artist_to_use,$if2(%_artists_track_primary_std%,%_artists_track_primary_cred%,%artist%,%albumartist%))
%_artist_to_use%/%_artist_to_use% - %title%
Note that you have to have the “Additional Artists Variables” plugin installed and enabled in order to make the %_artists_...%
variables available to your script.
2 Likes
JK29
May 5, 2020, 2:09am
5
Thank you, sir. This is working wonderfully! Only had to manually fix up a few of them out of 10,000
2 Likes