Help - Search - Members - Calendar
Full Version: foo_uie_single_column_playlist
Hydrogenaudio Forums > Hosted Forums > foobar2000 > 3rd Party Plugins - (fb2k)
Pages: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28
marc2003
QUOTE(Yotsuya @ Sep 25 2006, 21:13) *

foobar's internal auto-tracknumber routine will add totaltracks for you. Make a copy of a few albums to test first, but if I remember correctly I was able to load all my albums (use foo_browser to filter out anything without %tracknumber%) into a playlist, Ctrl+A to select all.. then right click the selection, choose properties, then auto-track number

I have had no luck playing with the !noheading! option. see below


you the man!! thanks again for your help. biggrin.gif
vonmeth
You could also use %_itemcount% and compare to see if it equals one, then supress the header.
evil_hacler
I have a problem:
When I add a new playlist the first group doesnt show up at top, but the itemlisting just under it. So I have to scroll up to see the Album name every time I add a new playlist. Very annoying. This only happens when I add playlists that have so many items that you have to scroll the window.
Does anybody else have this problem?
Yotsuya
The problem is that %_itemcount% and %_itemindex% dont really come into play until after the items are grouped (think about it, this actually makes sense). However you need to specify !noheader! in the group by box, which is processed before the items are grouped (in fact this determines what is in the group).

You can't really use %_itemcount% and %_itemindex% in the "Group By" Field and what little experimentation I have done has shown these variables wont work this way.

Maybe !noheader! would work better from the "Group Display" field.
Lorraine
Is there any way to ONLY show headers for non-singles/non-mixed playlists?

ex. If my playlist has -s- in the title, no headers will be shown. If there's no -s- then they are shown as normal.

I'm using the $if(%tracknumber%,%album%%discnumber%,!noheader!) code for no headers on any track without a tracknumber (ie. singles) but that's no use when a playlist has a single track from an album in it.

crying.gif

I've looked through the thread for help but it's just confusing me a little.
Yotsuya
Try something like this:

CODE
$if($strchr(%cwb_playinglist%,-s-),!noheader!,
$if(%tracknumber%,%album%%discnumber%,!noheader!)
)


*requires foo_cwb_hooks
kockroach
QUOTE(Yotsuya @ Sep 25 2006, 17:36) *

Maybe !noheader! would work better from the "Group Display" field.

I think that this would be a better idea too.
whr
Sorry for the stupid question, but is there anyway to use the hotness code with this plugin, without resorting to use foo_cwb_hooks for stuff like %_system_year% etc?
Lorraine
QUOTE(Yotsuya @ Sep 25 2006, 16:57) *

Try something like this:

CODE
$if($strchr(%cwb_playinglist%,-s-),!noheader!,
$if(%tracknumber%,%album%%discnumber%,!noheader!)
)


*requires foo_cwb_hooks

Nope, no change. unsure.gif
Yotsuya
No change?

- Do you have the recent version of cwb_hooks and single_column_playlist both installed?
- Try pasting that code into a trackinfo panel, what do you see?
- Are you sure your playlist had -s- in it's name, and does %cwb_playinglist% show this in a trackinfo panel?
Hamallainen
QUOTE(Lorraine @ Sep 26 2006, 00:25) *

QUOTE(Yotsuya @ Sep 25 2006, 16:57) *

Try something like this:

CODE
$if($strchr(%cwb_playinglist%,-s-),!noheader!,
$if(%tracknumber%,%album%%discnumber%,!noheader!)
)


*requires foo_cwb_hooks

Nope, no change. unsure.gif

Try to replace %cwb_playinglist% by %cwb_activelist%
marc2003
QUOTE(Yotsuya @ Sep 25 2006, 23:57) *

Try something like this:

CODE
$if($strchr(%cwb_playinglist%,-s-),!noheader!,
$if(%tracknumber%,%album%%discnumber%,!noheader!)
)


*requires foo_cwb_hooks


trouble is, this formats all playlists the same as the "playing" playlist..... laugh.gif

kockroach
Does %playlist_name% not work? That is what has worked in the past inside Columns_UI.
Lorraine
QUOTE(Hamallainen @ Sep 25 2006, 17:49) *


Try to replace %cwb_playinglist% by %cwb_activelist%


That works! Thank you both smile.gif
Hamallainen
QUOTE(kockroach @ Sep 26 2006, 01:05) *

Does %playlist_name% not work? That is what has worked in the past inside Columns_UI.

You're right, it's maybe better to use %playlist_name% considering this:

QUOTE
Sep 24, 2006

+ fixed centering/resizing bug
+ option to span group display over one or more rows
+ !noheader! to suppress header
+ readded updating every second
+ selectable playlist
+ columns ui globals (untested..)
+ _itemcount _itemindex
marc2003
just to confirm, %playlist_name% does work. smile.gif
Yotsuya
So is this the preferred answer?:

CODE
$if($strchr(%playlist_name%,-s-),!noheader!,
$if(%tracknumber%,%album%%discnumber%,!noheader!)
)
Lorraine


That does work, yes. smile.gif Originally this is what I was using but I forgot the '($strchr' and that's why it wouldn't work! unsure.gif
jimbo11883
I have what I consider to be a bug. I am using the following code to display album art:

CODE

$ifgreater(%_itemcount%,4,
$ifgreater(%_itemcount%,5,
$imageabs2(119,116,0,$add(-$ifgreater(%_itemindex%,1,$add(%_height%,9),%_height%),
$mul(%_itemindex%,%_height%)),154,150,23,$ifgreater(%_itemindex%,1,0,9),C:\Program Files\foobar2000\images\noart.png,)
$imageabs2(119,116,0,$add(-$ifgreater(%_itemindex%,1,$add(%_height%,9),%_height%),
$mul(%_itemindex%,%_height%)),154,150,23,$ifgreater(%_itemindex%,1,0,9),$replace(%path%,%filename_ext%,folder.jpg),)
$imageabs2(150,150,0,$add(-%_height%,$mul(%_itemindex%,%_height%)),150,150,0,-5,C:\Program Files\foobar2000\images\case.png,)
,
$imageabs2(103,99,0,$add(-$ifgreater(%_itemindex%,1,$add(%_height%,14),%_height%),
$mul(%_itemindex%,%_height%)),144,134,29,$ifgreater(%_itemindex%,1,0,14),C:\Program Files\foobar2000\images\noart.png,)
$imageabs2(103,99,0,$add(-$ifgreater(%_itemindex%,1,$add(%_height%,14),%_height%),
$mul(%_itemindex%,%_height%)),144,134,29,$ifgreater(%_itemindex%,1,0,14),$replace(%path%,%filename_ext%,folder.jpg),)
$imageabs2(130,130,0,$add(-%_height%,$mul(%_itemindex%,%_height%)),130,130,10,0,C:\Program Files\foobar2000\images\case.png,)
)
,)


Now here's what's going wrong. The larger album art works fine, but the smaller "no art" and the smaller overlay are not shown. Is this because those two images are cached with the first resize operation? The only workaround is to make a copy of these two images with a different file name and then using them for the smaller album art.

For now I've decided to use this instead...
CODE

$ifgreater(%_itemcount%,4,
$imageabs2(119,116,0,$add(-$ifgreater(%_itemindex%,1,$add(%_height%,9),%_height%),
$mul(%_itemindex%,%_height%)),154,150,23,$ifgreater(%_itemindex%,1,0,9),C:\Program Files\foobar2000\images\noart.png,)
$imageabs2(119,116,0,$add(-$ifgreater(%_itemindex%,1,$add(%_height%,9),%_height%),
$mul(%_itemindex%,%_height%)),154,150,23,$ifgreater(%_itemindex%,1,0,9),$replace(%path%,%filename_ext%,folder.jpg),)
$imageabs2(150,150,0,$add(-%_height%,$mul(%_itemindex%,%_height%)),150,150,0,-5,C:\Program Files\foobar2000\images\case.png,)
,)
Superunknown
does the obligation problem to have the album arts in foobar's folder has been solved ?
jimbo11883
QUOTE(Superunknown @ Sep 26 2006, 03:57) *

does the obligation problem to have the album arts in foobar's folder has been solved ?

Yes.
Superunknown
ok, so now, I can put an image thing just like %directoryname%/folder.jpg, and it will work ? smile.gif
Blitzmeister
Try --> $imageabs2(70,70,0,$add(-24,,$mul(%tracknumber%,22)),,,,,$replace(%path%,%filename_ext%,folder.jpg),)

The first 2 70's are the size of the artwork & -24 is your line size
Hope this helps
Cheers smile.gif
Superunknown
sure it helps !! thank you very much !
evil_hacler
QUOTE(Yotsuya @ Sep 26 2006, 00:36) *

The problem is that %_itemcount% and %_itemindex% dont really come into play until after the items are grouped (think about it, this actually makes sense). However you need to specify !noheader! in the group by box, which is processed before the items are grouped (in fact this determines what is in the group).

You can't really use %_itemcount% and %_itemindex% in the "Group By" Field and what little experimentation I have done has shown these variables wont work this way.

Maybe !noheader! would work better from the "Group Display" field.

So there is no way to solve it?
Spirit_of_the_ocean
I need some help because Foobar says that the Plug-in couldn't be loaded.
I am using foobar 9.4.
Are there users with simial problems?

Okay I need the Hooks thing blush.gif
lextune
QUOTE(Yotsuya @ Sep 24 2006, 23:55) *

QUOTE
Sep 24, 2006

+ fixed centering/resizing bug
+ option to span group display over one or more rows
+ !noheader! to suppress header
+ readded updating every second
+ selectable playlist
+ columns ui globals (untested..)
+ _itemcount _itemindex


Thank you terrestrial for another impressive update, I'd like to especially thank you for the %_itemcount% and %_itemindex%. Lots of new toys to play with in this one smile.gif

Edit: That first one means all the ugly lines are gone from images resized with different aspect ratios.. yay!
Edit: Image files are no longer locked, so you can update album art without closing foobar.. yay!
huh.gif Where is that quote from....?
marc2003
QUOTE(lextune @ Sep 26 2006, 16:36) *

huh.gif Where is that quote from....?


the changelog, a .txt file included with the dll when you download the zip from the link in the first post..... laugh.gif
evil_hacler
QUOTE(Yotsuya @ Sep 26 2006, 00:36) *

The problem is that %_itemcount% and %_itemindex% dont really come into play until after the items are grouped (think about it, this actually makes sense). However you need to specify !noheader! in the group by box, which is processed before the items are grouped (in fact this determines what is in the group).

You can't really use %_itemcount% and %_itemindex% in the "Group By" Field and what little experimentation I have done has shown these variables wont work this way.

Maybe !noheader! would work better from the "Group Display" field.

So what should I try? I still want the grouplisting to be displayed.
whr
I've got another question.
I have the Group by set to %album%%discnumber%, but for multiple discs albums from an artist, i get the albums displayed in this order:

Album 1 Disc 1
Album 2 Disc 1
Album 1 Disc 2
Album 2 Disc 2

I can't seem to get it to work in a more natural Album > all discs of the album > next album > all discs of the album.

Any help would be appreciated.
Yotsuya
whr:
The Group by field only determines how the items are grouped together, it does not change the order in which the groups are displayed. For that you need to modify your playlist sort code.

File> Preferences> General> "Sort Incoming files by:"
-or-
Edit> Sort> "Sort by..."

make sure the %discnumber% appears AFTER the %album% in your sort string.
whr
Oh, that did it. I had the %discnumber% before %album% in the sort string ><

Thanks!
lextune
QUOTE(marc2003 @ Sep 26 2006, 12:25) *

QUOTE(lextune @ Sep 26 2006, 16:36) *

huh.gif Where is that quote from....?


the changelog, a .txt file included with the dll when you download the zip from the link in the first post..... laugh.gif

Ahhh....good, I thought I was missing a thread somewhere. tongue.gif
q-stankovic
I just started using this wonderful plugin and i am fascinated about all the possibilities. I would like to make a request that could take this component one step further:

I thought about implementing the opportunity to create and use sort strings for your playlist: That could be something foo_custom_sort for foobar 0.83. But that is not the whole idea: Every sort string could be associated with a certain "group by" string. So everytime you use a sorting your grouping (and why not the item display too?) also changes.

What do you think?
Stuart60611
QUOTE(q-stankovic @ Sep 26 2006, 15:04) *

I just started using this wonderful plugin and i am fascinated about all the possibilities. I would like to make a request that could take this component one step further:

I thought about implementing the opportunity to create and use sort strings for your playlist: That could be something foo_custom_sort for foobar 0.83. But that is not the whole idea: Every sort string could be associated with a certain "group by" string. So everytime you use a sorting your grouping (and why not the item display too?) also changes.

What do you think?



I totally agree with this concept. The only functional limitation that I see with this component is the inability to change the group heading and corresponding sorting of the playlist dynamically. What would be great is if the user could select that the playlist be sorted by any particular metadata field and that the group heading be modified accordingly for particular sort selected. Also, the ability to bind sort options to buttons would be a great feature. As such, you could have a series of buttons to sort the playlist by artist, album, last played, play count, etc. and when selecting the appropriate button the playlist re-sorts accordingly and modifies the group heading with the metadata field for the selected sort. Right now, those of us who like to sort playlists based upon varying selectable metadata must use the Columns UI or default playlists to do so. With these features, this component can do the job.
cartman(2vd)
maybe ive found a bug but not sure:

there is imho some bug with resizeing images in new version of single column.
this works for me in most cases (strange beacuse it should not afaik):
CODE
$imageabs2(,,0,0,46,46,295,1,$replace(%path%,%filename_ext%,folder.jpg),)

this doesnt. some images just disappeared:
CODE
$imageabs2(46,46,0,0,46,46,295,1,$replace(%path%,%filename_ext%,folder.jpg),)


maybe it isnt bug maybe there is something wrong with my imgaes i dont no sad.gif cause with resize some work but some doesnt and it looks like there is no kye in which does and which not and they did work in previous release.
Nickoladze
Is there a way to get the length of an item in hh:mm:ss format?

If not, I request an %_itemlength%

also, I'm having the same problem as cartman(2vd)
Yotsuya
Nickoladze: Is %length% not working for you?
Nickoladze
QUOTE(Yotsuya @ Sep 26 2006, 19:30) *

Nickoladze: Is %length% not working for you?


sorry if i didn't specify, by item i meant all songs from an album. Just like how %_itemcount% works.
Yotsuya
By default the group header appears to inherit most of the properties of the first item in the group. It would be nice if commonly used variables were replaced with more group-related equivilants. Such as %length% reflecting the sum total of all items in the group. I also noticed that %list_index% gets duped from the first item in the list.. it would be nice if it incremented like any other row.
alphaex32
I previously requested group "siders." Nobody seemed to respond to this idea, and Im guessing it wouldnt be possible unless you created a list control completely from scratch anyway. Instead, would it be possible to let us have group header code that overlaps the tracks under it (instead of getting cut off if there isnt enough vertical space)? I'm mainly just trying to find a good way to put album art next to the tracks in a group without having to divide it between tracks, which doesnt work well when you are missing tracks in a group or don't have perfect tags.

Also, would it be possible to make the index of a group available to be used in item display code. For example, instead of using tracknumbers to split up albumart, you could use the offset from the group index number.
Yotsuya
alphaex32: If you position your art "slices" based on the newly added %_itemindex% instead of %tracknumber% you will solve the problem of missing tracks or tracks with no tag.
acedriver
QUOTE(apathy @ Sep 25 2006, 12:26) *

Just updated and its great smile.gif

But now my playlist is messed up at the bottom. The last song shouldnt be there, when u click on it foobar just crashes crying.gif

any idea on how to fix this?
blaxima
QUOTE(acedriver @ Sep 27 2006, 00:50) *

QUOTE(apathy @ Sep 25 2006, 12:26) *

Just updated and its great smile.gif

But now my playlist is messed up at the bottom. The last song shouldnt be there, when u click on it foobar just crashes crying.gif

any idea on how to fix this?


I have this problem too.
I found that resizing the playlist removes the double effect to the last song and therefore wont crash on ya but I do find at times on a restart that my header is cut half way.
jimbo11883
QUOTE(acedriver @ Sep 26 2006, 23:50) *

QUOTE(apathy @ Sep 25 2006, 12:26) *

Just updated and its great smile.gif

But now my playlist is messed up at the bottom. The last song shouldnt be there, when u click on it foobar just crashes crying.gif

any idea on how to fix this?


The only way I can think of fixing it is to look into the source code, and looking at the function/subroutine that returns the size of measured rows in the listview. This bug was most likely brought on by group row spanning.
acedriver
QUOTE(jimbo11883 @ Sep 27 2006, 13:03) *

The only way I can think of fixing it is to look into the source code, and looking at the function/subroutine that returns the size of measured rows in the listview. This bug was most likely brought on by group row spanning.

it even crashed if I use the default code on the first page
Sw!ng
Looks like this is going to be a great component, too !! (better say it IS ... but beta tongue.gif )
Unfortunatly it cant replace the conventional Playlistview for me, yet. -Since I often use it for editing single Meta-Fields.

Is such a function going to be implented ??
(you know: doubleclickin in a Column, and editing the Artist-Tag, for example.)

Or is it allready implemented, and I didnt recognize ??

.THNX.
cartman(2vd)
QUOTE(cartman(2vd) @ Sep 27 2006, 01:37) *

maybe ive found a bug but not sure:

there is imho some bug with resizeing images in new version of single column.
this works for me in most cases (strange beacuse it should not afaik):
CODE
$imageabs2(,,0,0,46,46,295,1,$replace(%path%,%filename_ext%,folder.jpg),)

this doesnt. some images just disappeared:
CODE
$imageabs2(46,46,0,0,46,46,295,1,$replace(%path%,%filename_ext%,folder.jpg),)


maybe it isnt bug maybe there is something wrong with my imgaes i dont no sad.gif cause with resize some work but some doesnt and it looks like there is no kye in which does and which not and they did work in previous release.


research report:
ok i did some more testing on this and it surely looks like there is some problem with handling images (maybe in "+ fixed centering/resizing bug" or new "gdi release images" feature). When i restarted my foobar this noon this code
CODE
$imageabs2(,,0,0,46,46,295,1,$replace(%path%,%filename_ext%,folder.jpg),)

did just as it is meant to = did no resize (strange because yesterday it did but without foobar restart!)

so new research progress is. If you change something in code with imageabs2 and click apply some images disappear but after you restart foobar some of then appear and acts like they should. To speak the truth after restart almost every image works (but still not all of them:()

does anybode else encountering this behavior?
...Just Elliott
Quick question - what's the best way to do alternating backgrounds?
mquander
The resizing aspect of imageabs2 seems kinda unreliable and buggy. I can't really get it to act how I expect at all when I'm taking slices from images for album art, unless there is something I'm completely not understanding.
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.