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 736632 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

foo_uie_single_column_playlist

Reply #1050
Quote
Hakubo
Code: [Select]
$fileexists($replace(%path%,%filename_ext%,Folder.*))

hi, please help me to modify the function to check for the parent folder also.

I suppose it shoudl be like this
Code: [Select]
if (exist in this folder, cover, if(exist in parent folder, cover, nocover))


but i don't know how to check the parent folder.

thanks

foo_uie_single_column_playlist

Reply #1051
There might another less ugly way to do what you want, but this string works:

Code: [Select]
$if($fileexists($replace(%path%,%filename_ext%,folder.*)),
    $replace(%path%,%filename_ext%,folder.*)
,
    $if($fileexists($replace(%path%,$directory(%path%)\%filename_ext%,folder.*)),
        $replace(%path%,$directory(%path%)\%filename_ext%,folder.*)
    )
)

foo_uie_single_column_playlist

Reply #1052
Is there a way to force the album art to update without restarting?

foo_uie_single_column_playlist

Reply #1053
In the config window: type something, undo, press apply.

 

foo_uie_single_column_playlist

Reply #1054
Er. After having played around with the plug-in for a while, i've come up with another request (please correct me if this function already exists and i just don't see it).

Here's my issue: It doesn't appear to be possible to alter the entries the component inserts into the context menu. That is, i can't move or get rid of the 'Settings...' and 'Playlist' entries when i right-click in the play list. This really messes me up because i'm so used to the 'Remove' and 'Crop' items being there.

Is it at all possible that this could be configurable?


edit:
Oh, hey. Another thing. This one's pretty small though.

It took me ages to figure out how to get the component to ignore the aspect ratio when resizing images. Perhaps someone could add a mention of the 'NOKEEPASPECT' option (and any other such undocumented features) to the wiki. I don't really want to register for that one thing, you know. :x


Other than that, fantastic plug-in. I'd been waiting for something like this... i don't know, almost since Columns UI was invented. A while, anyway.
~

foo_uie_single_column_playlist

Reply #1055
ok.. anyone got their album covers to show when the directory name has a # in it?

hmmmm, it doesnt work

foo_uie_single_column_playlist

Reply #1056
So I was playing around with album art alignment and since I could find no real documentation outside of the wiki about it I thought I'd post this:


Code: [Select]
// Album Art
$if($get(album_mode),$ifgreater($mul(%_height%,%_itemcount%),95,
$imageabs2(110,95,,$sub($mul(%_height%,%_itemindex%),$add(%_height%,3)),,%_height%,2,,images\emptycd.png,)
$imageabs2(110,85,,$sub($mul(%_height%,%_itemindex%),$add(%_height%,5)),,%_height%,-7,,$replace(%path%,%filename_ext%,$if2(%cdid%,[%artist% - ]$replace(%album%,?,,:,)).png),halign-r)
$imageabs2(110,85,,$sub($mul(%_height%,%_itemindex%),$add(%_height%,5)),,%_height%,-7,,$replace(%path%,%filename_ext%,$if2(%cdid%,[%artist% - ]$replace(%album%,?,,:,)).tif),halign-r)
$imageabs2(110,85,,$sub($mul(%_height%,%_itemindex%),$add(%_height%,5)),,%_height%,-7,,$replace(%path%,%filename_ext%,$if2(%cdid%,[%artist% - ]$replace(%album%,?,,:,)).gif),halign-r)
$imageabs2(110,85,,$sub($mul(%_height%,%_itemindex%),$add(%_height%,5)),,%_height%,-7,,$replace(%path%,%filename_ext%,$if2(%cdid%,[%artist% - ]$replace(%album%,?,,:,)).jpg),halign-r)
,),)

This basically displays a background image of an empty cd case, then resizes the album art to a height that will fit in the case and align it to the right of the case. This is somewhat useful as it will take full images like the first example and overlay on top of the case spine while normal images like the last example fit in the case as normal. Smaller images like cd singles in the center examples get pushed to the side.

I'd still like to be able to run some sort of calculation to figure out the size of the resized image and remove the empty case for cd singles, and there are some ugly results when using nonstandard sized images (like vertical full size cover scans) but hey.. this is an example of how to use that halign parameter if anyone is interested (there is also a valign parameter for vertical alignment).

foo_uie_single_column_playlist

Reply #1057
Oh, hey. Another thing. This one's pretty small though.

It took me ages to figure out how to get the component to ignore the aspect ratio when resizing images. Perhaps someone could add a mention of the 'NOKEEPASPECT' option (and any other such undocumented features) to the wiki. I don't really want to register for that one thing, you know. :x

The NOKEEPASPECT option and other changes are mentioned in the .txt file that's included with the plugin.
we was young an' full of beans

foo_uie_single_column_playlist

Reply #1058
couldnt you just wildcard it like this?

Code: [Select]
// Album Art
$if($get(album_mode),$ifgreater($mul(%_height%,%_itemcount%),95,
$imageabs2(110,95,,$sub($mul(%_height%,%_itemindex%),$add(%_height%,3)),,%_height%,2,,images\emptycd.png,)
$imageabs2(110,85,,$sub($mul(%_height%,%_itemindex%),$add(%_height%,5)),,%_height%,-7,,$replace(%path%,%filename_ext%,$if2(%cdid%,[%artist% - ]$replace(%album%,?,,:,)).*),halign-r)
,),)

foo_uie_single_column_playlist

Reply #1059
Does this component now support wildcards for imageabs2? Last I checked it didnt but that was a little while ago.

EDIT: So I gave it a try and it worked. Optimizing my code now thanks for the heads up

foo_uie_single_column_playlist

Reply #1060
Are buttons supported yet?

I would love to be able to have this:

$if($strcmp($right(%filename_ext%,3),mp4),
$button(700,0,0,0,0,0,images\arrow.png,images\arrow.png,VLC,),
)

foo_uie_single_column_playlist

Reply #1061
I was going to ask the same about $button()

it'd be nice to have for this plugin with more parameters than just the usual "play", "pause", etc..

foo_uie_single_column_playlist

Reply #1062
ok.. anyone got their album covers to show when the directory name has a # in it?

hmmmm, it doesnt work

I'm having the exact same problem. My code works for every single album in my collection except for one, and that one has a '#' in it.

foo_uie_single_column_playlist

Reply #1063
I'm finding that the SCP view isn't following the selected playlist.  I have a columns playlist and an SCP playlist displayed, and clicking between playlists changes the view in the columns playlist but not in the SCP playlist.  Does anybody else have this problem?  It only started a few minutes ago but now I can't get it to stop.

foo_uie_single_column_playlist

Reply #1064
I'm finding that the SCP view isn't following the selected playlist.  I have a columns playlist and an SCP playlist displayed, and clicking between playlists changes the view in the columns playlist but not in the SCP playlist.  Does anybody else have this problem?  It only started a few minutes ago but now I can't get it to stop.


Can you do some more tests, please?

Maybe the ability to have scp stay on a different playlist than the one selected in the columns UI has been implemented silently... (if it's even possible)

There are a lot peple waiting for that.

Thanks.

foo_uie_single_column_playlist

Reply #1065
I added a second SCPL, and that one followed the playlist switcher selection.  I moved my formatting strings over, removed the first one, and now I'm back to normal.  Not sure what went wrong.

I can say that what seems to have triggered it was having both a playlist dropdown and a playlist switcher in my layout.  As soon as I added the switcher, it stopped following either.  And even after I then removed the playlist dropdown, it wouldn't follow the selection.

foo_uie_single_column_playlist

Reply #1066
Thanks for this amazing plugin.  I think a lot of people agree it really revolutionizes foobar.  I never saw it coming!

A few feature requests:

* Sum of some tag in group.  This could be useful for generating an average rating for an album -- e.g. $div($groupsum(%rating%),%_groupitemcount%)

(I know %_groupitemcount% isn't correct -- isn't there code for this?)

or for generating the number of "total plays" of an album -- $div($groupsum(%play_count%),%_groupitemcount%)


* Can %_isplaying% be used in Group Display?  This way you could change the look of the header depending on whether something in the group is playing.


* Can buttons be made to work with foo_run?


Thanks again!

foo_uie_single_column_playlist

Reply #1067
Okay I just started playing with foobar again, iTunes was just too bloated for me. I've got it so it shows my album art, but for some reason, it seperates a lot of my albums, so they are not grouped.

foo_uie_single_column_playlist

Reply #1068
Protoss:

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

You need to put %album% somewhere in your sort string.

foo_uie_single_column_playlist

Reply #1069
ok.. anyone got their album covers to show when the directory name has a # in it?

hmmmm, it doesnt work


nope, won't work with paths with a #.


I'm finding that the SCP view isn't following the selected playlist.  I have a columns playlist and an SCP playlist displayed, and clicking between playlists changes the view in the columns playlist but not in the SCP playlist.  Does anybody else have this problem?  It only started a few minutes ago but now I can't get it to stop.


right click / playlist / make sure "Active" is checked.

foo_uie_single_column_playlist

Reply #1070
Hey guys!

I've got a few questions about the single column playlist plugin. Firstly is there any way to re-arrange items in your playlist, say my clicking and dragging? I've been unable to do it so far, maybe theres something i'm missing. Also is there any ETA even a rough one for when the refresh issue will be fixed.

I've attached a screenshot to show what I mean



The U2 song was playing before slow moves but once it changes song it does not highlight the new song unless the new song is off the top of the playlist, or below the bottom.

Thanks for the great plugin!

ViZioN

foo_uie_single_column_playlist

Reply #1071
You can re-arrange the play list by holding the Alt key when you're dragging stuff.


I don't know about the highlighting thing, though, that doesn't happen to me. You have 'Cursor follows Playback' checked in the Playback menu, yeah?
~

foo_uie_single_column_playlist

Reply #1072
You can re-arrange the play list by holding the Alt key when you're dragging stuff.

I don't know about the highlighting thing, though, that doesn't happen to me. You have 'Cursor follows Playback' checked in the Playback menu, yeah?


Thanks for the reply!

The holding ALT key works a charm thanks a lot for that 

I tried checking the cursor follows playback in the menu but it doesn't seem to have fixed the problem. I know it's a known issue with the plugin so I guess i'll just have to bear with it for now 

ViZioN

foo_uie_single_column_playlist

Reply #1073
You can re-arrange the play list by holding the Alt key when you're dragging stuff.

Wow I didn't know that, that is really cool  .
Maybe some day this will work without having to click ALT   

Thanks terrestrial

foo_uie_single_column_playlist

Reply #1074

ok.. anyone got their album covers to show when the directory name has a # in it?

hmmmm, it doesnt work


nope, won't work with paths with a #.
Is this "won't" as in "never/not planned" or "as of now"?
The $fileexists works correctly with paths with "#" in them. So instead of "no cover" image now I get no image at all.