Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: foo_uie_single_column_playlist (Read 736802 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

foo_uie_single_column_playlist

Reply #400
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. 

foo_uie_single_column_playlist

Reply #401
You could also use %_itemcount% and compare to see if it equals one, then supress the header.

foo_uie_single_column_playlist

Reply #402
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?

foo_uie_single_column_playlist

Reply #403
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.

foo_uie_single_column_playlist

Reply #404
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.

 

I've looked through the thread for help but it's just confusing me a little.

foo_uie_single_column_playlist

Reply #405
Try something like this:

Code: [Select]
$if($strchr(%cwb_playinglist%,-s-),!noheader!,
$if(%tracknumber%,%album%%discnumber%,!noheader!)
)


*requires foo_cwb_hooks


foo_uie_single_column_playlist

Reply #407
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?


foo_uie_single_column_playlist

Reply #409
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?


foo_uie_single_column_playlist

Reply #411
Try something like this:

Code: [Select]
$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..... 

 

foo_uie_single_column_playlist

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


foo_uie_single_column_playlist

Reply #414
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

foo_uie_single_column_playlist

Reply #415
just to confirm, %playlist_name% does work.

foo_uie_single_column_playlist

Reply #416
So is this the preferred answer?:

Code: [Select]
$if($strchr(%playlist_name%,-s-),!noheader!,
$if(%tracknumber%,%album%%discnumber%,!noheader!)
)

foo_uie_single_column_playlist

Reply #417
That does work, yes.  Originally this is what I was using but I forgot the '($strchr' and that's why it wouldn't work! 

foo_uie_single_column_playlist

Reply #418
I have what I consider to be a bug. I am using the following code to display album art:

Code: [Select]
$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: [Select]
$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,)
,)

foo_uie_single_column_playlist

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


foo_uie_single_column_playlist

Reply #421
ok, so now, I can put an image thing just like %directoryname%/folder.jpg, and it will work ?

foo_uie_single_column_playlist

Reply #422
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

foo_uie_single_column_playlist

Reply #423
sure it helps !! thank you very much !

foo_uie_single_column_playlist

Reply #424
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?