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: Curaçao by Br3tt (Read 338810 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Curaçao by Br3tt

Reply #350
Thank you Andy, it's nicer to get the cover than always the same artist.

the popup would work like this:
When you hover over the group header of a normal album the artist picture is shown, when available, otherwise the cover.

I don't wanna klugscheissen, but hovering over the header of a normal album the noartist.cover is shown, cause you defined it so with the $puts (artist_path...). 


But I have another problem.

I did a workaround with artist covers which have invalid characters in the artist name.
I put these covers in every single album folder as invalidartist.jpg and defined a constant (also for the artist wallpaper) - so this is ok, but I don't like it cause it's a lot of work.

I have read the Title Formatting Reference 5 times today to find an answer, but I don't make it.
I wanna a title formating which checks if there are invalid characters in the artist , replaces it with space and take the new filename for "%artist%.jpg".

An example: Phantom/Ghost --> Phantom Ghost -->Phantom Ghost.jpg

Curaçao by Br3tt

Reply #351
Thank you Andy, it's nicer to get the cover than always the same artist.


the popup would work like this:
When you hover over the group header of a normal album the artist picture is shown, when available, otherwise the cover.

I don't wanna klugscheissen, but hovering over the header of a normal album the noartist.cover is shown, cause you defined it so with the $puts (artist_path...). 


But I have another problem.

I did a workaround with artist covers which have invalid characters in the artist name.
I put these covers in every single album folder as invalidartist.jpg and defined a constant (also for the artist wallpaper) - so this is ok, but I don't like it cause it's a lot of work.

I have read the Title Formatting Reference 5 times today to find an answer, but I don't make it.
I wanna a title formating which checks if there are invalid characters in the artist , replaces it with space and take the new filename for "%artist%.jpg".

An example: Phantom/Ghost --> Phantom Ghost -->Phantom Ghost.jpg

AC/DC becomes AC DC
Try this,
Code: [Select]
$replace(%artist%,/, ).jpg

This is mine, for graphical browser
Code: [Select]
$puts(artist.path,'F:/Artist Images/'$replace(%artist%,/,_)'.jpg')
AC/DC becomes AC_DC
Edit: too many edits 

Curaçao by Br3tt

Reply #352
Thx sounds blast, but I want an automatic replacement for every artist with invalid characters.

I thought about to define every single exception but I wanna an automatic method. *grrrrr*

Curaçao by Br3tt

Reply #353
You can add more to it, $replace(%artist%,/, ,*,) etc... try that out, you can test this in the properties window of fb2k, right click the file and go to Properties, and then Right Click On The Artist name and click Fromat From Other Fields, and paste this $replace(%artist%,/, ,*,) and you can see what the name would look like, and if it matches your .jpg then click cancel so it doesn't mess your tag up. Just to preview the name is all.
Edit:, hm automated method, don't know if that's possible

Curaçao by Br3tt

Reply #354
This should replace all invalid characters with space:
$replace(%artist%,/, ,\, ,*, ,?, ,", ,<, ,>, ,|, ,:, )

EDIT:
" doesn't need to be replaced with space, but removed, so:
$replace(%artist%,/, ,\, ,*, ,?, ,",,<, ,>, ,|, ,:, )

Curaçao by Br3tt

Reply #355
Thank you very very much, Sounds Blast and Tedgo - it works perfectly.

I thought there are so much more invalid characters.
That's the punishment for being too lazy for google - ok, I'm not sure if I would have found this answer for myself.

Curaçao by Br3tt

Reply #356
Another question Andy,

could you tell me why popups are destroyed when I put this in the Popup(Track)?

Code: [Select]
$if($findfile(%__ART_PATH__%),
$puts(art_path,%__ART_PATH__%),
$puts(art_path,$get(foo_path)'images/'$get(config_name)'/cover/nocover.png')


I ask because if I put in your code and there is cover for a sampler, only an empty popup is shown.

Curaçao by Br3tt

Reply #357
a bracket is missing to close the if statement, that's all :

Code: [Select]
$if($findfile(%__ART_PATH__%),
$puts(art_path,%__ART_PATH__%)
,
$puts(art_path,$get(foo_path)'images/'$get(config_name)'/cover/nocover.png')
)

Curaçao by Br3tt

Reply #358
Thank you Br3tt - I'm blind


After putting this in Andy's Popup-Code the Nocover had been shown, but after restarting foobar nothing is shown again - I'm going crazy.

Curaçao by Br3tt

Reply #359
My Popup tweaks - I merged some code from Andy and Br3tt.


Two new Field Definitions

Code: [Select]
__PHOTO_PATH_ALBUMARTIST__: F:\Eigene Dateien\Eigene Bilder\Artist Cover\$replace(%album artist%,/,,?,,*,,",,<,,>,,|,,:,,).jpg

__PHOTO_PATH_ARTISTGROUPHEADER__: F:\Eigene Dateien\Eigene Bilder\Artist Cover\$replace(%artist%,/,,?,,*,,",,<,,>,,|,,:,,).jpg

Albumartist is for sampler which have not Various Artists but an Single Artist, like DJ XYZ Presents Mega Hits
Artistgroupheader is for showing the Cover in the Groupheader if no Artist is present. In the Track-Popup the Noartist is still shown (I like it so)

Popup(Track) top

Code: [Select]
$puts(config_name,%__CONFIG_NAME__%)
$puts(foo_path,'./')

$if($stricmp(%album artist%,%artist%),
$puts(VA,0),
$puts(VA,1))

$if($findfile(%__PHOTO_PATH_COLLECTED__%),
$puts(artist_path,%__PHOTO_PATH_COLLECTED__%),
$puts(artist_path,$get(foo_path)'images/'$get(config_name)'/cover/noartist.png'))

$puts(albumartist_path,%__PHOTO_PATH_ALBUMARTIST__%)
$puts(artist_groupheader_path,%__PHOTO_PATH_ARTISTGROUPHEADER__%)

$if($findfile(%__ART_PATH__%),
$puts(art_path,%__ART_PATH__%),
$puts(art_path,$get(foo_path)'images/'$get(config_name)'/cover/nocover.png'))
$puts(time_of_year,%__DATENAME__%)
$puts(time_of_day,%__TIME__%)
$puts(header,$if(%artist%,%artist%)$if(%album%, - %album%)$if(%tracknumber%, - %tracknumber%)$if(%title%, - %title%))

$puts(Remixed_By,$if2(%remixed by%,$if2(%DISCOGS_TRACK_CREDITS%,)))
$puts(katalog,$if2(%catalog%,$if2(%discogs_catalog%,'N/A')))


Popup(Track)

Code: [Select]
// Cover And Artist Picture//
$ifequal(%el_item_count%,1,
$if($findfile($get(artist_path)),$imageabs(12,40,$get(artist_size),$get(artist_size),$get(artist_path),nokeepaspect,) $puts(space,12),)
$imageabs(12,$add($add($get(space),40),$get(artist_size)),$get(cover_size),$get(cover_size),%path%,artreader,,)
,
$ifequal($get(VA),0,$if($findfile($get(artist_groupheader_path)),
$imageabs(12,12,$get(artist_size),$get(artist_size),$get(artist_path),,),
$imageabs(12,12,$get(cover_size),$get(cover_size),$get(art_path),,)),
$ifgreater($strstr($upper(%album artist%),'VARIOUS'),0,
$imageabs(12,12,$get(cover_size),$get(cover_size),$get(art_path),,),
$if($findfile($get(albumartist_path)),
$imageabs(12,12,$get(artist_size),$get(artist_size),$get(albumartist_path),,),
$imageabs(12,12,$get(cover_size),$get(cover_size),$get(art_path),,)))
)
)

Normal Albums show Artist--->Cover
Sampler show Albumartist--->Cover or Cover if there are Various Artists

The problem ist still if there is no Albumcover, then an empty Group-Popup is shown.
I don't know why Nocover isn't working.

Another strange thing is, that if I replace the "%path%,artreader" with $get(art_path) for the Track-Popup, the Nocover is only shown for Songs which have an embedded cover, but not for Tracks with no cover in the folder.

Curaçao by Br3tt

Reply #360
Hey if anyone could help, that would be great. I wanted to show my Artist photo's in a new way. My current string i'm using
Code: [Select]
$puts(artist.path,'F:/Artist Images/'$replace(%artist%,/,_,\, ,*, ,?, ,",,<, ,>, ,|, ,:, )'.jpg')

I would like to have the %comment% search first, and then if no %comment%.jpg it would search for %artist%.jpg

 

Curaçao by Br3tt

Reply #361
$puts(artist.path,$if2($findfile(F:\Artist Images\%comment%.jpg),F:\Artist Images\$replace(%artist%,/,_,\, ,*, ,?, ,",,<, ,>, ,|, ,:, ).jpg))

EDIT:
You does mean showing it in PSS or ELPlaylist, right?

EDIT2:
Tried it now, it could be shorter
$puts(artist.path,F:\Artist Images\$if2(%comment%.jpg,$replace(%artist%,/,_,\, ,*, ,?, ,",,<, ,>, ,|, ,:, ).jpg))
No need for $findfile...

Curaçao by Br3tt

Reply #362
$puts(artist.path,$if2($findfile(F:\Artist Images\%comment%.jpg),F:\Artist Images\$replace(%artist%,/,_,\, ,*, ,?, ,",,<, ,>, ,|, ,:, ).jpg))

EDIT:
You does mean showing it in PSS or ELPlaylist, right?

Thanks a lot for your time, tedgo, this works perfect with PSS, i will try and modify it for GB/Graphical Browser, and EL playlist

Edit: I just saw your new edit,
Code: [Select]
EDIT2:
Tried it now, it could be shorter
$puts(artist.path,F:\Artist Images\$if2(%comment%.jpg,$replace(%artist%,/,_,\, ,*, ,?, ,",,<, ,>, ,|, ,:, ).jpg))
No need for $findfile... wink.gif

Don't work for me, the %comment%.jpg shows, but %artist%.jpg don't, First codes works, long but works

Curaçao by Br3tt

Reply #363
Tried it in ELPlaylist and it works, but not in PSS...

Curaçao by Br3tt

Reply #364
Can anyone explain me how to put the musics of an album sorted by album, and not like this..
I wanted all the song of an album under the album, just like in the 1st post by Br3tt...



Cumpz...

Curaçao by Br3tt

Reply #365
This config works and looks great.

I just have two questions.

What is the best way to tag single tracks for use with this config?

Also, will it always show track numbers as question marks with single tracks?

Thanks!

Curaçao by Br3tt

Reply #366
Can anyone explain me how to put the musics of an album sorted by album, and not like this..
I wanted all the song of an album under the album, just like in the 1st post by Br3tt...

You could try tagging Album Artist: V.A (or something similar).... Usually it gets sorted by that if the tag is there, and that way the Artist tag is still correct (for example it still gets reported to Last.FM right). I'm actually not at my own PC so I can't check if it works, but I imagine it does...

Hope that helps.

Curaçao by Br3tt

Reply #367
It would be great if the album and artist panels would also display the name of the albums/artists on the images.

Curaçao by Br3tt

Reply #368
I've noticed with Curacao that files with a high bitrate (say, in FLAC format for instance) do not have their bitrates shown correctly in the playlist. It seems as though only three-digit bitrates can be shown, so something with more than 1000kbps bitrate does not show properly, it's cut off. Maybe this can be fixed in the next release?

Thanks!

Curaçao by Br3tt

Reply #369
This config works and looks great.

I just have two questions.

What is the best way to tag single tracks for use with this config?

Also, will it always show track numbers as question marks with single tracks?

Thanks!


Maybe you download my tweaked version and use the Group by Single.. At least you can use the code to start tweaking it by yourself..? It actually totally depends on how you want single tracks to look like... Use %el_item_count% to config the behaviour the way you want to!


@Bubi:
Youhave to change the second if-statement below all the variable configurations on the top to this:
$if($findfile($get(art_path)),$puts(cover_size,$ifequal(%el_item_count%,1,%__ART_SIZE__%,%__ART_SIZE_GROUP__%)),$puts(cover_size,0))

Actually here I have just checked for embedded or cover artwork and don't take the nocover-stuff into consideration. Therefore the size was set to 0

I have implemented your adjustments to my code and updated the files - just download it and put the variable "show_nocover" to 1. Actually this feature lets everyone choose if the nocover/noartist should be shown in the popup or not...

It would be great if the album and artist panels would also display the name of the albums/artists on the images.


What do you mean by that? Actually my tweaked version shows the title of the album in the "album"-panel (graphical browser) if there is no cover found. Just look at the code and adapt it to your needs (most of that code was provided by Thuan - thanks go to him!)

Curaçao by Br3tt

Reply #370
Maybe you download my tweaked version and use the Group by Single.. At least you can use the code to start tweaking it by yourself..? It actually totally depends on how you want single tracks to look like... Use %el_item_count% to config the behaviour the way you want to!


I just decided to download your config again and there looks like more changes have been made. Anything cool or new or important?

Curaçao by Br3tt

Reply #371
Can anyone explain me how to put the musics of an album sorted by album, and not like this..
I wanted all the song of an album under the album, just like in the 1st post by Br3tt...


Cumpz...

So, i don`t know how it makes right, but I changed two boxes below
but sometimes after adding albums in playlist I need to rightclick on elplaylist and change "sort"--->preset default, I don`t know how to make it by default.
anyway, take a look on screenshot, maybe it helps you


Curaçao by Br3tt

Reply #372

It would be great if the album and artist panels would also display the name of the albums/artists on the images.


What do you mean by that? Actually my tweaked version shows the title of the album in the "album"-panel (graphical browser) if there is no cover found. Just look at the code and adapt it to your needs (most of that code was provided by Thuan - thanks go to him!)


I mean it would be nice if the title is shown on or below the cover. Kind of like Chronflow does. Especially with new albums you might know the name but not the cover. At least that's what sometimes happens to me. Also with the images being so small it is hard to sometimes differentiate some groups if the members look similar.

Curaçao by Br3tt

Reply #373
@Freedom-loving
Go to Preferences-->General-->Sort incoming files by
and set the pattern you want to sort files by default, when added to a playlist

Btw. you have a strange pattern in your ELPlaylist.
With your pattern, some albums wouldn't be sorted correctly, e.g. you have a "Greatest Hits" from 1990 by artist A, and another "Greatest Hits" from 1990 by artist B.
They would be sorted like this:
Track 1 artist A
Track 1 artist B
Track 2 artist A
Track 2 artist B
...

You probably should change the pattern to:
%album artist% - %date% - %album% - %discnumber% - %tracknumber% - %title%

Curaçao by Br3tt

Reply #374
Has anyone had a problem with minimizing the player to the taskbar and when you go to maximize it, the player won't show itself.  The music continues to play, but I have to close and reopen foobar.  When I do, the player is small and you have to drag a corner to see the config.  Anyone?  I've only had this happen a few times.