Help - Search - Members - Calendar
Full Version: Importing Playlist with Album List Panel
Hydrogenaudio Forums > Hosted Forums > foobar2000 > 3rd Party Plugins - (fb2k)
NukeleaR
Hiya!

Just a quick question...when I import the "All Music" root node of album list panel it sorts the play list by album instead of by artist. I've been over and over the options and I can't seem to find anything about it. Here is my setup and an example of what happens when I click on All Music:

IPB Image

Also I'm having issues with my group display code I believe. When I have large play list the only album art, artist name, album name, and date that show up are of the first album on the play list. Everything else is just a list of tracks with nothing to distinguish they are a new album or new artist, etc. I've posted an example picture below and Ill post up my group display code, maybe something is off in it? Thanks a bunch!

Example

CODE
$puts(artfnt0,$font(Tahoma,10,bold,195-195-195))
$puts(abmfnt0,$font(Tahoma,11,,120-120-120))
$puts(techfnt0,$font(Tahoma,8,,195-195-195))

$if($greater($strstr(%playlist_name%,Radio),0),$puts(is_single,1))
$if($greater($strstr(%playlist_name%,Single),0),$puts(is_single,1))
$if($not(%tracknumber%),$puts(is_single,1))

$ifequal($mod(%_playlist_number%,2),0,
$drawrect(0,0,0,1,brushcolor-240-240-240 pencolor-null),
$drawrect(0,87,0,1,brushcolor-240-240-240 pencolor-null))
$drawrect($sub(%_width%,15),10,15,0,brushcolor-241-249-250 pencolor-null)
$imageabs(,,'FCS\unique\head_bg.png',)

$ifequal($get(is_single),1,
$if(%filesize%,
$imageabs2(60,60,,,,,2,20,'FCS\unique\sgcover.png',),
$imageabs2(60,60,,,,,2,20,'FCS\unique\radiocover.png',)),
$imageabs2(60,60,,,,,2,20,'FCS\unique\nocover.png',)),
$imageabs2(60,60,,,,,2,20,$replace(%path%,%filename_ext%,)folder.jpg,)

$ifequal($get(is_single),1,
$alignabs(70,42,$add(%_width%,-107),20,left,middle)
$get(abmfnt0)$if(%filesize%,SINGLES,ONLINE RADIO)
,
$alignabs(70,27,$add(%_width%,-107),20,left,middle)
$get(artfnt0)$if2(%album artist%,$if2(%artist%,UNKNOWN))

$alignabs(70,42,$add(%_width%,-107),20,left,middle)
$get(abmfnt0)$if2($upper(%album%),UNKNOWN)

$alignabs(70,55,$add(%_width%,-107),20,left,middle)
$get(techfnt0)[%genre%', '][%codec% ][$info(bitrate)K]
)
Martin H
To get propper sorting, then you need to enable the option : Preferences > Media Library > Album List Panel > Advanced > "Apply core sort settings to added items" and then use an appropriate sort string under : Preferences > General > "Sort incoming files by".

I personally use this sort string :

CODE
%album artist%|$if($not($meta(album artist)),%date%)|%album%|%discnumber%|%tracknumber%|%title%


This sort string sorts by the following :

ALBUM ARTIST
If not VA, then DATE
ALBUM
DISCNUMBER
TRACKNUMBER
TITLE
NukeleaR
QUOTE(Martin H @ Feb 7 2007, 13:55) *

To get propper sorting, then you need to enable the option : Preferences > Media Library > Album List Panel > Advanced > "Apply core sort settings to added items" and then use an appropriate sort string under : Preferences > General > "Sort incoming files by".

I personally use this sort string :

CODE
%album artist%|$if($not($meta(album artist)),%date%)|%album%|%discnumber%|%tracknumber%|%title%


This sort string sorts by the following :

ALBUM ARTIST
If not VA, then DATE
ALBUM
DISCNUMBER
TRACKNUMBER
TITLE



Thanks a bunch that worked great!

Anybody have any input on my group display code?

Thanks again
Yotsuya
Please post your group by code.
NukeleaR
QUOTE(Yotsuya @ Feb 7 2007, 17:07) *

Please post your group by code.


CODE

$if($greater($strstr(%playlist_name%,Radio),0),$puts(is_single,1))
$if($greater($strstr(%playlist_name%,Single),0),$puts(is_single,1))
$if($not(%tracknumber%),$puts(is_single,1))

$ifequal($get(is_single),1,NORMAL,$if2(%artist%))
Yotsuya
The problem is your use of $if2() try this instead:
CODE
$if($strstr(%playlist_name%,Radio),$puts(is_single,1),)
$if($strstr(%playlist_name%,Single),$puts(is_single,1),)
$if(%tracknumber%,,$puts(is_single,1))

$if($get(is_single),!noheader!,$if2(%album artist%,!noheader!))
NukeleaR
Thanks a bunch!

That worked but now it seems to not be splitting up the individual albums from the same artist. Is there anything I should specify to get that effect? Basically I want a new album art/title/artist etc for every album, even if the previous was the same artist.
Yotsuya
To group by album instead of artist try this instead:
CODE
$if($strstr(%playlist_name%,Radio),$puts(is_single,1),)
$if($strstr(%playlist_name%,Single),$puts(is_single,1),)
$if(%tracknumber%,,$puts(is_single,1))

$if($get(is_single),!noheader!,%album%%discnumber%)

(I am assuming all of your tracks belonging to albums have track numbers, and all loose single tracks have no track numbers?)
blackmartinix
I have the problem with the album list panel which sounds like the same problem up top, with the sorting issue. I use my middle mouse to send to playlist, it sorts ok when I pick a certain artist, but if i use the All Music option up top, it sorts by album, and I can't figure out why. Any help would be appreciated
NukeleaR
QUOTE(Yotsuya @ Feb 7 2007, 22:42) *

To group by album instead of artist try this instead:
CODE
$if($strstr(%playlist_name%,Radio),$puts(is_single,1),)
$if($strstr(%playlist_name%,Single),$puts(is_single,1),)
$if(%tracknumber%,,$puts(is_single,1))

$if($get(is_single),!noheader!,%album%%discnumber%)

(I am assuming all of your tracks belonging to albums have track numbers, and all loose single tracks have no track numbers?)


Well the thing is I have no single tracks and I'm not really trying to sort by the Album. The only remaining problem is shown in this example. http://www.mitchellandjames.com/example2.jpg
NukeleaR
QUOTE(NukeleaR @ Feb 13 2007, 15:56) *

QUOTE(Yotsuya @ Feb 7 2007, 22:42) *

To group by album instead of artist try this instead:
CODE
$if($strstr(%playlist_name%,Radio),$puts(is_single,1),)
$if($strstr(%playlist_name%,Single),$puts(is_single,1),)
$if(%tracknumber%,,$puts(is_single,1))

$if($get(is_single),!noheader!,%album%%discnumber%)

(I am assuming all of your tracks belonging to albums have track numbers, and all loose single tracks have no track numbers?)


Well the thing is I have no single tracks and I'm not really trying to sort by the Album. The only remaining problem is shown in this example. http://www.mitchellandjames.com/example2.jpg


Silly me works now!
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.