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: Function to locate cover art in a music folder subdirectory (Read 2717 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Function to locate cover art in a music folder subdirectory

I'm currently trying to use a suitable syntax/function to locate the cover art.

I put all the cover arts (including disc image, side cover, etc) on a folder, namely [Scans] instead of the album folder where I put my songs in. Example:

File path for albums:
C:\Music\AlbumA\*.mp3

File path for album art:
C:\Music\AlbumA\Scans\*.jpg

I'm wondering what function should I type in order to display the cover art in the [Scans] folder.

Currently I'm using $replace(%path%,%filename_ext%,)*.jpg but it can only display cover arts which I placed under the root folder where my songs are. Example: C:\Music\AlbumA\*.jpg

Function to locate cover art in a music folder subdirectory

Reply #1
Quote
$replace(%path%,%filename_ext%,)*.jpg

This surely doesn't work.
$replace(%path%,%filename_ext%,) leads to the folder where the music lies. you can't use * for the Scans folder. The wildcard works only for the filename or the extension.

Please look @ the title reference. It depends on the plugin and the support of wildcards.

Function to locate cover art in a music folder subdirectory

Reply #2
I'm currently using 'Lyrics Art' plugin as posted which I downloaded here

Most of my album arts are located under Scans folder and I really couldn't bear to move those album arts one by one under the music directory.

Any solutions? 

Function to locate cover art in a music folder subdirectory

Reply #3
@OP: If your code does work with covers in the same folder as your music files then the simply adding Scan in like this will work:
Code: [Select]
$replace(%path%,%filename_ext%,Scan\*.jpg)

 

Function to locate cover art in a music folder subdirectory

Reply #4
Thanks for the code man. Never figure it out though. 

 
SimplePortal 1.0.0 RC1 © 2008-2021