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 736623 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.


foo_uie_single_column_playlist

Reply #1202
VeaaC
Could you please help me with 2 little problems? I tried you config because I really like it. Unfortunately it looks like this:



So my 2 questions:

1) Why is the album name cropped? Probably because of using 100dpi fonts. So how do I fix it?

2) My album art images are named after following scheme: %album% - front.jpg. Sometimes it is different, in the case I'd like to display any .jpg image in the album folder.

And one more question: In the code I found a link to a file "images\minidisc.png". What is this image good for? Where can I get it?

I'm sorry for my laziness, I would be probably able to find the answers by studying the code more deeply. But I hope the questions will be really easy to answer for you.

Thanks in advance.

foo_uie_single_column_playlist

Reply #1203
Could you please make options to change the default clicking behavior in the playlist? Especially for double clicking, because this would make it possible to use jonpb's new component to have a true "Now Playing" playlist.
http://www.hydrogenaudio.org/forums/index....st&p=464523

 

foo_uie_single_column_playlist

Reply #1204
I'd like to request an %_isgroupplaying% variable.
elevatorladylevitateme

foo_uie_single_column_playlist

Reply #1205
HI,
    how I can eliminate those "square"chracters  from lyrics tag?
    thanks
    Flavio


foo_uie_single_column_playlist

Reply #1206
HI,
    how I can eliminate those "square"chracters  from lyrics tag?
    thanks
    Flavio

Try this:
Code: [Select]
$if(%unsynced lyrics%,[$replace(%unsynced lyrics%,$char(13),)]
You might need to change to the proper "lyrics" tag name.

foo_uie_single_column_playlist

Reply #1207
I'd like to request an %_isgroupplaying% variable.
I wrote some code which will determine if a group is playing:
Code: [Select]
$if($strcmp(%playlist_name%,%cwb_playinglist%),$ifgreater($num(%cwb_playing_index%,2),$sub(%list_index%,1),$ifgreater($Add(%list_index%,%_itemcount%),$num(%cwb_playing_index%,2), 'GROUP IS PLAYING',),),)
The only problem is that this information only seems to update after you switch playlists and switch back. I'm not sure why, but I have a feeling it has something to do with foo_cwb_hooks.


foo_uie_single_column_playlist

Reply #1209
Try this:
Code: [Select]
$if(%unsynced lyrics%,[$replace(%unsynced lyrics%,$char(13),)]
You might need to change to the proper "lyrics" tag name.


Thank you! It works...    I used it this way..

Code: [Select]
$alignabs(125,32,%_width%,500,center,)$replace(%lyrics%,$char(13),))

foo_uie_single_column_playlist

Reply #1210
VeaaC
Could you please help me with 2 little problems? I tried you config because I really like it. Unfortunately it looks like this:



So my 2 questions:

1) Why is the album name cropped? Probably because of using 100dpi fonts. So how do I fix it?

2) My album art images are named after following scheme: %album% - front.jpg. Sometimes it is different, in the case I'd like to display any .jpg image in the album folder.

And one more question: In the code I found a link to a file "images\minidisc.png". What is this image good for? Where can I get it?

I'm sorry for my laziness, I would be probably able to find the answers by studying the code more deeply. But I hope the questions will be really easy to answer for you.

Thanks in advance.


Hi, I've set the row height to 17 and the the header height to 3 rows:

to display images labeled %album% - front.jpg just exchange every occurence of folder.jpg in the code with %album% - front.jpg ... very easy indeed. To display any .jpg found in the folder is another case... don't know if it is possible... but you can check if a file exists, but you have to know what alternate names the jpgs can have.
The minidisk.png is there to display albums stretching acrossmultiple discs... it is diplayed beneath the disc number...:



I hope it helped a bit.

foo_uie_single_column_playlist

Reply #1211
I am having a strange issue: some of my images do not display in SCPL using $imageabs2 and absolute paths.
They do however if you use album art display.

[a href="http://img266.imageshack.us/my.php?image=scplbug1zs8.png" target="_blank"]

Any help is appreciated.

foo_uie_single_column_playlist

Reply #1212
SCPL and Trackinfomod have issues with #

remove the # from the path and they will work.
elevatorladylevitateme

foo_uie_single_column_playlist

Reply #1213
beto: I suspect the proble is that your path name for the album art contains a pound sign '#'. This is a known issue with SCPL. Avoid using the # character in path names and this should resolve your problem.

foo_uie_single_column_playlist

Reply #1214
thanks for the reply 
Are there any other signs that should be avoided?
I have problems with the following directory too:
Code: [Select]
D:\Media\Audio\Lossy\My Rips\Midnight Oil\1997 - 20,000 Watt R.S.L

foo_uie_single_column_playlist

Reply #1215
not that I know of.
I don't know what the deal with that one is.
elevatorladylevitateme


foo_uie_single_column_playlist

Reply #1217
Just wondering... Is it in the works for Single Column Playlist to utilize sorting columns like in WMP?

That would mean that it is no longer "Single Column".  You can always use the "Edit>Sort>" menus to do the sorting.

foo_uie_single_column_playlist

Reply #1218

Just wondering... Is it in the works for Single Column Playlist to utilize sorting columns like in WMP?

That would mean that it is no longer "Single Column".  You can always use the "Edit>Sort>" menus to do the sorting.


Is there a way to achieve that WMP playlist view with any other plugin?

foo_uie_single_column_playlist

Reply #1219
Is there a way to achieve that WMP playlist view with any other plugin?
What you could do is make a row of buttons using a trackinfo_mod panel and put it right over the playlist. Then you could make them perform sorting to simulate column headers. Of course its still not true resizable columns, but it's better than nothing.

foo_uie_single_column_playlist

Reply #1220
alphaex32: Is there a way to hardcode the sorting strings into the button function? Can you give a code example of your concept for sorting buttons? This sounds like an interesting idea.

foo_uie_single_column_playlist

Reply #1221
check the wiki.
elevatorladylevitateme

foo_uie_single_column_playlist

Reply #1222
Thanks, I need to check the wiki more often :)
Quote
Example with SORT command:
Code: [Select]
$button2(DstX,DstY,X,Y,W,H,TEXT,HOVER TEXT,
'SORT:source|!source!:genre|%genre%:artist|%artist%:album|%album%',)

Sorting

Code: [Select]
SORT:name_1|value_1:name_2|value_2:...:name_n|value_n

Enables a sorting context menu which shows name_1, name_2, etc, corresponding to sorting by value_1, value_2, etc. SORT sorts the currently selected playlist, which manifests itself in all playlist views of that active playlist.

Code: [Select]
$sorted(field)

Returns a sort index of the field, ie if the playlist is sorted first by genre, then artist, then by album, $sorted(artist) will return 3. If the playlist is not sorted by 'field' through the SORT command described above, then $sorted(field) will be evaluated as false and produce '[UNKNOWN FUNCTION]' as text output.


So I've had some fun learning about the sort command however I am having a bit of difficulty. To begin with I do not want a sorting context menu I just want the button to perform the sort. I found out that by specifying only one item/value combo, that value will auto execute. First hurdle cleared. However it appears that when using multiple buttons their sorting accumulates. So if you click a button to sort by %artist%, then click a button to sort by %album% this is the same as only clicking a button for %artist%%album% (or did I get that reversed?).

What I would like to do is have each button's sort isolated from each other. So that when I click on a button to sort by %artist% the list will sort by artist and if I then click on a button to sort by %album% the list is then resorted by album regardless of artist. (The difference in this example is slight, becomes apparent with various artist albums, but the problem is amplified with complex sort strings).  There is an option called "reset" available from the context menu which will allow the user to manually clear each tag from the sorting string however I can find no way to automate the process.

Does anyone have any ides on how to create buttons that will sort the playlist regardless of which buttons have been clicked before?

foo_uie_single_column_playlist

Reply #1223
you need to use more specific (and complex) sort algorithms.

Sorting by %artist% is incomplete. What happens when two songs are by the same artist? Then how does foobar decide which comes first? By default it (rather intelligently) then uses the previous sort method. Columns (and the rest of windows for that matter) does the same thing.

To avoid the problem, each sort string needs to have all tags found in all other strings.
elevatorladylevitateme

foo_uie_single_column_playlist

Reply #1224
thanks for the reply 
Are there any other signs that should be avoided?
I have problems with the following directory too:
Code: [Select]
D:\Media\Audio\Lossy\My Rips\Midnight Oil\1997 - 20,000 Watt R.S.L

My guess would be the comma in the Album Title.