Help - Search - Members - Calendar
Full Version: album art plugin (path to getting cd cover image)
Hydrogenaudio Forums > Hosted Forums > foobar2000 > 3rd Party Plugins - (fb2k)
adrianmak
The default album art's "source for album cover art images" only read image file which put aside in the same directory level of mp3 files

however for some cd album with more than 1 CD
I and many people (i think) will arrange files like this

c:\Artist - Album name\CD1
c:\Artist - Album name\CD2

If I put the image file under c:\Artist - Album name\ , of course no cover will be found by album art. so now I copy the image file into CD1 and CD2 sub-directory

anybody know how to config strings of "source album covert art image" need to be, in order it can able to go back 1 level up of directory to look for an image.



Bachi-Bouzouk
you have to use this command but as I don't understand how works the syntax of album art..:

$directory(x), $directory(x,n) Extracts directory name from file path x, optionally goes up by n directory levels. $directory(%_path%,2)
adrianmak
how do I found more commands available from foobar ?
Bachi-Bouzouk
http://www.foobar2000.net/titleformat_help.html

But there are several specific tags for uie albumart:
http://www.hydrogenaudio.org/forums/index....81&#entry260181

I'm trying to finf a solution to your problem (as it also could be useful for me biggrin.gif )

moreover it seems that what I said to you was wrong
Bachi-Bouzouk
Good version (at last huh.gif )

user posted image

First line

CODE
$puts(char,\)$puts(tag,$replace(%_path%,\%_filename_ext%,))$puts(spacer,$strrchr($get(tag),$get(char)))$trim($left($get(tag),$sub($get(spacer),1)))\folder.jpg


2nd line

CODE
-match:$puts(char,\)$puts(tag,$replace(%_path%,\%_filename_ext%,))$puts(spacer,$strrchr($get(tag),$get(char)))$trim($left($get(tag),$sub($get(spacer),1)))\*


3rd and 4th line are the default ones, the fifth line is changed for my personal use, don't take care

You just have to add the first and 2nd line before the default settings

How it works in general words:
1 searches anything in the parent folder, if there is a picture, it displays it
2 searches a cover in the track folder, if there is a picture it displays it (if there is also an image in the parent folder, the cover in the track folder has the priority)
3 if nothing of the two quoted above, displays the default picture

should work properly now
MJT
How about:
CODE
$replace(%_path%,$directory(%_path%)\%_filename_ext%,)folder.jpg
-match:$replace(%_path%,$directory(%_path%)\%_filename_ext%,)*

Instead of all those gets and puts?

edit: typo
adrianmak
Bachi-Bouzouk,
your version is quite complicated

I search thru the album art thread, and found emd107 version works

CODE

$replace(%_path%,%_filename_ext%,)folder.jpg
match:$replace(%_path%,%_filename_ext%,)*
match:$replace(%_path%,'\'%_filename_ext%,,%_directoryname%,)*
components\default.png


line 1,2,3 is default ; line 4 is emd107 version
MJT
Doh, I didn't see %_directoryname%. I still like this one better tongue.gif

CODE
match:$replace(%_path%,%_directoryname%'\'%_filename_ext%,)*
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.