Foobar2000:Album Art Panel (foo uie albumart): Difference between revisions

From Hydrogenaudio Knowledgebase
(→‎Sources List: Behaviour of "match:" prefix in version 0.160 and newer)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
=Description=
#REDIRECT [[Foobar2000:Components/Album Art Panel (foo uie albumart)]]
 
Album Art Panel is a component for foobar2000 0.9 and Columns UI 0.1.3 that displays album art in a panel.
 
==Features==
*Configurable sources list allows cycling of multiple images for a single track
*Allows TAGZ and wildcards to specify image file location
*Minimum height setting to assist with layouts
*Configurable resizing of album art to fit panel size
*Sliding and fading transitions between album art
*Configurable actions when panel is left-clicked, double-clicked, and middle-clicked.
*Can display album art for either the currently playing track or the currently selected track
 
==Reading Embedded Album Art==
 
Album Art Panel does not support reading album art which has been embedded as a tag (for example, as an ID3v2 tag in an MP3).
 
=Sources List=
The sources list allows you to use [[Foobar2000:Titleformat_Reference|titleformatting scripts]] to specify exactly where Album Art Panel will look for image files.  In order to learn how to use the sources list, let's look at an example:
 
  $replace(%_path%,%_filename_ext%,)folder.jpg
  -match:$replace(%_path%,%_filename_ext%,)*
  -components\default.png
  match:C:\Music\Arts\%artist% %album%*
  -components\default.png
 
The sources list is organized into groups, based on which lines have a '-' in front of them.  Each line that does not start with a '-' is the beginning of a new source group.  A line which starts with '-' is part of the same source group as the line above it.  In the example above, there are two source groups.  The first source group consists of the first three lines and the second group consists of the last two lines.
 
If a line begins with "match:" or "-match:", the wildcard '*' can be used in place of one or any number of characters and '?' can be used in place of any single character.  For instance, the second line of the example above tells Album Art Panel to look for any file it can display in the same directory as the track.  Album Art Panel will display the first image which matches the pattern.
 
Starting with version 0.160, the "match:" prefix is optional and ignored, and "-match:" is treated like "-". The wildcards '*' and '?' can be used in any source string; characters in tags that are not allowed in filenames will be replaced by an underscore '_' or - in version 0.164 and newer - with the '?' wildcard.
 
The "Next Source" action (by default, left-clicking on the panel) will cycle through the source list as follows: If a wildcard is used, "Next Source" will cycle through all images which match the pattern.  Otherwise, "Next Source" will cycle through the source groups.
 
Album Art Panel will first look for an image at the location indicated in the first line of a source group.  In this example, it will look in the same directory as the track for a file called "folder.jpg".  The TAGZ code takes the full path of the track, replaces the filename with a blank, and appends "folder.jpg" to the end (e.g, "C:\Music\Soundgarden\Badmotorfinger\01 Rusty Cage.mp3" becomes "C:\Music\Soundgarden\Badmotorfinger\folder.jpg").
 
If the image indicated by the first line cannot be found, Album Art Panel will look at subsequent lines within the same source group and display the first image which can be found.  If no image within a source group can be found, Album Art Panel will try to display the next source group instead.  If none of the source groups can be found, the display will be blank.
 
=External Links=
*[http://www.hydrogenaudio.org/forums/index.php?showtopic=29383 Original thread]
*[http://www.hydrogenaudio.org/forums/index.php?showtopic=39924 Updated thread] (visit here for latest version and developments)

Latest revision as of 21:36, 13 April 2010