Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Script Question (Read 2432 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Script Question

I have a quick script question about finding an artist image...  I like to store images in the artist folder and call it folder.jpg (like my album art).  I also have music in a few different directories on my PC,. but they all have ..../artist/album

The artist folder has folder.jpg (artist image) and and the album folder also has folder.jpg (cover art).

Does anyone know of a way I can pull the artist image?  I assume it is something similar to this (used to find the album art), but I can seem to figure it out:

Code: [Select]
$replace(%path%,%filename_ext%,folder.jpg)


I have tried

Code: [Select]
$replace(%path%,%directory%'/'%filename_ext%,folder.*)


and a few variations of that, but nothing seems to work.

Thanks in advance!

Script Question

Reply #1
Try this:
$left(%path%,$calcwidth(%album%))\folder.jpg

Script Question

Reply #2
Or use

Code: [Select]
$replace(%path%,%filename_ext%,\..\folder.jpg)