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

foo_uie_single_column_playlist

Reply #500
I have %album artist% tagged to 'Various Artists' in those. Normal albums only have %artist%, but %album artist% resolves to that anyway.

foo_uie_single_column_playlist

Reply #501
This component is shaping up nicely. However, I'd love to be able to resize images to larger dimensions, not just smaller.

foo_uie_single_column_playlist

Reply #502
Is there anyway to display in the header "various artist" when having multiple artists all under the same abum, like in a soundtrack for example?  For me it shows as the name of the album but dispays the first artist name only.


as chaosblade mentioned, you need to tag your va albums with the %album artist% tag. then you can display headers like this.....

group display
Code: [Select]
$if2(%album artist%,%artist%)


because you have multiple artists you might want to show each one in the item display?

item display
Code: [Select]
$if(%album artist%,%artist%' - ',)


it should look something like this


foo_uie_single_column_playlist

Reply #503
group display
Code: [Select]
$if2(%album artist%,%artist%)


item display
Code: [Select]
$if(%album artist%,%artist%' - ',)


Foobar automatically maps %artist% onto any missing %album artist%. So you can simplify the first code to:
Code: [Select]
%album artist%


Going further with that concept, if you want to specifically test for wether or not a file has an album artist tag you should use $meta(album artist). So for the second code you might want something more like this:

Code: [Select]
$if($meta(album artist),[%artist% - ],)%title%

foo_uie_single_column_playlist

Reply #504
yup your post makes more sense than mine.....

but if

Foobar automatically maps %artist% onto any missing %album artist%.

by rights my code should also display the artist when the %album artist% tag does not exist as i'm not meta testing?

edit: yet again i'm posting before engaging my brain...  i did actually use $meta in my original code

thanks yotsuya for clearing things up for me.

foo_uie_single_column_playlist

Reply #505
if %artist% exists, %album artist% will exist. So $if(%album artist%,%artist%' - ',) is somewhat redundant and can be simplified to [%artist% - ]. The only exception being if a song has an album artist tag but no artist tag. In which case your code would display a '? - ' while the simplified version would not.

foo_uie_single_column_playlist

Reply #506
@ChaosBladE,  marc2003, Yotsuya

Thanx, its all good now

foo_uie_single_column_playlist

Reply #507
item display
Code: [Select]
$if(%album artist%,%artist%' - ',)


%album artist% returns %artist% even if the Album Artist tag is not set.  This should get around that:
Code: [Select]
$if($meta(Album Artist),%artist% - )


Crapy, Yotsuya beat me to it.

foo_uie_single_column_playlist

Reply #508
hi. I borrowed Ceciperez's code (thanks a lot for sharing, btw), and added a line another member said, to make it show album art properly. like this:

Code: [Select]
$imageabs(9,$if($strcmp(%tracknumber%,01),0,$add(24,$mul(-24,%tracknumber%))),simple\albumborder.png,)
$imageabs(10,$if($strcmp(%tracknumber%,01),1,$add(25,$mul(-24,%tracknumber%))),$replace($replace(cover\%artist% - %album%.png,',',),?,),)
$imageabs2(82,82,0,$sub($mul(%_height%,%tracknumber%),%_height%),,%_height%,10,,$replace(%path%,%filename_ext%,[%album artist% - %album%]_front.jpg),)


I have every album cover inside the album folder, named like this: artist - album_front.jpg ( pulp - different class_front.jpg, for example). But some images are not named exactly the same way as the album, comas missing, or whatever, so they don' show. How can I make it show any image named *_front.jpg that is inside the album folder? I tried writing that in the code, but it don't work.

I'm sure this is easy and I feel dumb asking. help this newbe please    thanks

foo_uie_single_column_playlist

Reply #509
hi. I borrowed Ceciperez's code (thanks a lot for sharing, btw), and added a line another member said, to make it show album art properly. like this:

Code: [Select]
$imageabs(9,$if($strcmp(%tracknumber%,01),0,$add(24,$mul(-24,%tracknumber%))),simple\albumborder.png,)
$imageabs(10,$if($strcmp(%tracknumber%,01),1,$add(25,$mul(-24,%tracknumber%))),$replace($replace(cover\%artist% - %album%.png,',',),?,),)
$imageabs2(82,82,0,$sub($mul(%_height%,%tracknumber%),%_height%),,%_height%,10,,$replace(%path%,%filename_ext%,[%album artist% - %album%]_front.jpg),)

I have every album cover inside the album folder, named like this: artist - album_front.jpg ( pulp - different class_front.jpg, for example). But some images are not named exactly the same way as the album, comas missing, or whatever, so they don' show. How can I make it show any image named *_front.jpg that is inside the album folder? I tried writing that in the code, but it don't work.

I'm sure this is easy and I feel dumb asking. help this newbe please    thanks


Try this code:
$imageabs2(80,80,0,$add($mul(%_height%,$sub(%tracknumber%,2)),$muldiv(%_height%,5,6)),,,10,,$replace($replace($replace(%path%,%filename_ext%,%artist% - %album%_front.png),',',),?,),)

Sorry, this is the code (tested and jpg format)
$imageabs2(80,80,0,$add($mul(%_height%,$sub(%tracknumber%,2)),$muldiv(%_height%,5,6)),,,11,-3,$replace($replace($replace(%path%,%filename_ext%,%artist% - %album%_front.jpg),',',),?,),)

foo_uie_single_column_playlist

Reply #510
hey thanks a lot for the reply.. you tested it and it's working? Cause here it doesn't  None of the covers are displaying now...but thanks for taking the time to try it

Pd. no seras de cataluña no? ese avatar y ese nombre...

foo_uie_single_column_playlist

Reply #511
hey thanks a lot for the reply.. you tested it and it's working? Cause here it doesn't  None of the covers are displaying now...but thanks for taking the time to try it

Pd. no seras de cataluña no? ese avatar y ese nombre...


I test it and it works, but your covers must be ARTIST - ALBUM_front.jpg
Check the spelling of the artist or the album name.
The code ignores the comas and the "?" symbols in the names.

PS: Soy de Argentina, si queres preguntame en Mensaje Privado, pero no creas que soy experto.

foo_uie_single_column_playlist

Reply #512
Is there a way to check if a file exists?

I want to use $imageabs2 to display a 'No Cover' image if there's no album cover in the album's folder.  I've tried overlaying the album art on top of the 'No Cover' image, which works great for normal sized covers, but not for tall or wide images.

foo_uie_single_column_playlist

Reply #513
Is there a way to check if a file exists?

I want to use $imageabs2 to display a 'No Cover' image if there's no album cover in the album's folder.  I've tried overlaying the album art on top of the 'No Cover' image, which works great for normal sized covers, but not for tall or wide images.


I second this feature request... 

foo_uie_single_column_playlist

Reply #514
Is there a way to check if a file exists?

maybe album art panel could provide service to feed album art file names ... as i don't want to see duplicit features here and there ...

however text file feed to track info, for example, would be nice.

foo_uie_single_column_playlist

Reply #515
How are they duplicate features if they are entirely different components from different authors?


foo_uie_single_column_playlist

Reply #517
How are they duplicate features if they are entirely different components from different authors?

i just can't pass on adding almost complete subset of album art panel features to another plugin. it's a lot of work, issues to come etc. plugins with interesting features which could be handy to use in other plugins, should provide services / api instead.

foo_uie_single_column_playlist

Reply #518
i just can't pass on adding almost complete subset of album art panel features to another plugin. it's a lot of work, issues to come etc. plugins with interesting features which could be handy to use in other plugins, should provide services / api instead.
Why is it a subset of Album Art panel?  My question was about detecting the existence of any files, not only album art pics.

As well as detecting album art, it could be used to detect if a fps or m3u playlist exists for the current album, or, if your tracks' filenames contain the tracknumber, to see if all tracks in an album are present.  For those who share their setups, it could even be used to check for a needed plugin and display a message if it's missing.

I can understand why it might not belong as part of Single Column Playlist.  It would be a handy command in ColumnsUI, Album Info Panel, or even Album Art panel.  As a collection of new commands, maybe foo_cwb_hooks would be a better place for it.

foo_uie_single_column_playlist

Reply #519
Could we please have support for buttons like in the trackinfo mod? It'd be awesome to set ratings in the playlist like in wmp or itunes.

foo_uie_single_column_playlist

Reply #520

Would you mind showing me how you put the album art in the group section please? I've had a look through the thread but couldn't find anything about it. Thanks!

foo_uie_single_column_playlist

Reply #521


Would you mind showing me how you put the album art in the group section please? I've had a look through the thread but couldn't find anything about it. Thanks!



Use this code in Group Dysplay:

$imageabs(0,0,covers\%artist% - %album%.png,)

Replace the source of the covers if it doesn't work.
And change "Group rows" to 6 (or the height that you want).

 

foo_uie_single_column_playlist

Reply #522
Thanks, that did the trick! I don't known why I didn't see the group rows option before. Now my cover art won't be getting chopped in half on my shorter albums.

Edit:

Hmm, now I'm getting an issue where the bottom part/right side of some covers aren't being drawn. Here's the code I'm using in the group display:

Code: [Select]
$imageabs2(110,110,,,,,5,5,$replace(%path%,%filename_ext%,folder.jpg),)



Any idea why this is happening? It doesn't seem to happen on covers with a more square aspect ratio, just with wider/narrower ratios. Thanks again for any help.

foo_uie_single_column_playlist

Reply #523
how do I have my tracks with alternating bg colours?

foo_uie_single_column_playlist

Reply #524
Give this a try. Put it in the item display box:
Code: [Select]
$if($stricmp($mod(%_playlist_number%,2),1),$drawrect(0,0,0,0,brushcolor-245-245-245 pencolor-null),$drawrect(0,0,0,0,brushcolor-0-0-0 pencolor-null))