HydrogenAudio

Hosted Forums => foobar2000 => 3rd Party Plugins - (fb2k) => Topic started by: Kenny^2K on 2007-10-14 13:51:52

Title: problem with albumart source
Post by: Kenny^2K on 2007-10-14 13:51:52
Hi all,

Iam using foobar and iam very happy with it. But there seems to be a bug in the albumart component.
I use:

"C:\Programme\foobar2000\coverdownloader\cover\%artist%_$replace(%album%,:,).jpg"

for the source.. The Preview displays:

"C:\Programme\foobar2000\coverdownloader\cover\Timbaland_Presents Shock Value.jpg"

for example...
that is totaly right. But albumart won't load artworks with a removed ":". The files are there... but albumart doesn't load them :-(

Anyone had the same problem?

Thanks for help.
Title: problem with albumart source
Post by: gfngfgf on 2007-10-15 06:16:06
It's not a bug, just not the behavior you're expecting.  Invalid filename characters in tags (such as ':' and '/') are replaced with the wildcard '?' before any other titleformatting functions (such as $replace) are evaluated.  That means you can't define exactly how invalid characters are replaced.
Title: problem with albumart source
Post by: Kenny^2K on 2007-10-16 13:34:31
OK!. for example:

artist: John Williams
album: Star Wars Episode III: Revenge Of The Sith

the cover is correctly stored here:
C:\Programme\foobar2000\coverdownloader\cover\John Williams_Star Wars Episode III Revenge Of The Sith.jpg

what is the correct string for albumart to display it?

thx for help.
Title: problem with albumart source
Post by: gfngfgf on 2007-10-17 02:58:55
You'll have to rename the cover to something like:

C:\Programme\foobar2000\coverdownloader\cover\John Williams_Star Wars Episode III_ Revenge Of The Sith.jpg

The point is, you have to replace the ":" with another character in the filename.  As far as I know, there is no way to make it work with the colon removed.
Title: problem with albumart source
Post by: Kenny^2K on 2007-10-21 23:10:38
AHhhhhhhhh.
Big thx. finaly working. I didn't thought about replacing with another legit character.