My Popup tweaks - I merged some code from Andy and Br3tt.
Two new Field Definitions
__PHOTO_PATH_ALBUMARTIST__: F:\Eigene Dateien\Eigene Bilder\Artist Cover\$replace(%album artist%,/,,?,,*,,",,<,,>,,|,,:,,).jpg
__PHOTO_PATH_ARTISTGROUPHEADER__: F:\Eigene Dateien\Eigene Bilder\Artist Cover\$replace(%artist%,/,,?,,*,,",,<,,>,,|,,:,,).jpg
Albumartist is for sampler which have not Various Artists but an Single Artist, like DJ XYZ Presents Mega Hits
Artistgroupheader is for showing the Cover in the Groupheader if no Artist is present. In the Track-Popup the Noartist is still shown (I like it so)
Popup(Track) top
$puts(config_name,%__CONFIG_NAME__%)
$puts(foo_path,'./')
$if($stricmp(%album artist%,%artist%),
$puts(VA,0),
$puts(VA,1))
$if($findfile(%__PHOTO_PATH_COLLECTED__%),
$puts(artist_path,%__PHOTO_PATH_COLLECTED__%),
$puts(artist_path,$get(foo_path)'images/'$get(config_name)'/cover/noartist.png'))
$puts(albumartist_path,%__PHOTO_PATH_ALBUMARTIST__%)
$puts(artist_groupheader_path,%__PHOTO_PATH_ARTISTGROUPHEADER__%)
$if($findfile(%__ART_PATH__%),
$puts(art_path,%__ART_PATH__%),
$puts(art_path,$get(foo_path)'images/'$get(config_name)'/cover/nocover.png'))
$puts(time_of_year,%__DATENAME__%)
$puts(time_of_day,%__TIME__%)
$puts(header,$if(%artist%,%artist%)$if(%album%, - %album%)$if(%tracknumber%, - %tracknumber%)$if(%title%, - %title%))
$puts(Remixed_By,$if2(%remixed by%,$if2(%DISCOGS_TRACK_CREDITS%,)))
$puts(katalog,$if2(%catalog%,$if2(%discogs_catalog%,'N/A')))
Popup(Track)
// Cover And Artist Picture//
$ifequal(%el_item_count%,1,
$if($findfile($get(artist_path)),$imageabs(12,40,$get(artist_size),$get(artist_size),$get(artist_path),nokeepaspect,) $puts(space,12),)
$imageabs(12,$add($add($get(space),40),$get(artist_size)),$get(cover_size),$get(cover_size),%path%,artreader,,)
,
$ifequal($get(VA),0,$if($findfile($get(artist_groupheader_path)),
$imageabs(12,12,$get(artist_size),$get(artist_size),$get(artist_path),,),
$imageabs(12,12,$get(cover_size),$get(cover_size),$get(art_path),,)),
$ifgreater($strstr($upper(%album artist%),'VARIOUS'),0,
$imageabs(12,12,$get(cover_size),$get(cover_size),$get(art_path),,),
$if($findfile($get(albumartist_path)),
$imageabs(12,12,$get(artist_size),$get(artist_size),$get(albumartist_path),,),
$imageabs(12,12,$get(cover_size),$get(cover_size),$get(art_path),,)))
)
)
Normal Albums show Artist--->Cover
Sampler show Albumartist--->Cover or Cover if there are Various Artists
The problem ist still if there is no Albumcover, then an empty Group-Popup is shown.
I don't know why Nocover isn't working.
Another strange thing is, that if I replace the "%path%,artreader" with $get(art_path) for the Track-Popup, the Nocover is only shown for Songs which have an embedded cover, but not for Tracks with no cover in the folder.