Skip to main content
Topic: Mark recently added album as 'NEW' (Read 473 times) previous topic - next topic
EpicForever and 1 Guest are viewing this topic.

Mark recently added album as 'NEW'

How can I mark new music with some visual badge? Is it possible?
Currently I use Colums UI and Album list panel. I'd like to see every new entry in album list with badge 'NEW'. May be it possible with other extensions set? Thanks.

Re: Mark recently added album as 'NEW'

Reply #1
Hi there,

Yes it is possible, although I use Default UI and Facets for this and I just put an icon next to newly added albums.

(However I'm not sure the second component below works with Columns UI? Try it and see. CUI might have its own global variables with current date info as someone mentioned here that you could use instead. I'm not familiar enough with CUI to know how that works so someone else might help there)

Firstly you need foo_playcount (Playback Statistics) which adds the %added% field (date added to the library). Note, if you do not have this component already, the %added% dates for EVERY track will be the same the first time you install it - see documentation here. Once you add new tracks the field will be correct going forward.

Secondly, I think default foobar does not have a way to access the current date/time (like a $now() function), so for that get foo_dynfil (Dynamic Fields). Install as usual. In foobar File menu > Preferences > Media Library > Dynamic Fields, click the plus button and name the field "new" (without quotes), click OK, then under 'Title formatting expression' put -
Code: [Select]
$date_diff(%added%)
Then click OK and I think you have to restart foobar at this point.

Finally just add this bit of title formatting to your Album List (File > Preferences > Media Library > Album List > Views) or (Facets > Columns), I personally put it after the %album% field -
Code: [Select]
%album%$ifgreater(%_new%,30,,  $char(57803))
The number '30' is how many days you want it to be considered "new". The '$char(57803)' part is the icon / font symbol I use from Segoe UI Symbol font (looks like a little tag, like on new clothes :D ), you can replace that with just "NEW" if you want although using an icon is more eye catching. If you want a different icon or use a different font, you could pick one from this handy page, click one to copy and paste. Lastly, note that if you swap %album% for %artist% the view will split the artist into two entries (old tracks and new tracks), this is why I use %album% instead as it can only be one or the other, but your choice.

Side note: I use a similar code to tag icons on to Podcasts, Music Videos, Internet Radio streams, etc -
Code: [Select]
%<genre>%$if($strstr(%genre%,Podcast),  $char(57814),)

Cheers 8)

Re: Mark recently added album as 'NEW'

Reply #2
Thank you very much! I will try as soon as I have more time.

Re: Mark recently added album as 'NEW'

Reply #3
A simpler solution is to make an autoplaylist with the following query, eg.: %last_modified% DURING LAST 8 WEEKS

Re: Mark recently added album as 'NEW'

Reply #4
A simpler solution is to make an autoplaylist with the following query, eg.: %last_modified% DURING LAST 8 WEEKS
Yeah I thought I mentioned an auto-playlist in the post above but must have edited it out.

One thing I would revise is to use a better, more descriptive name for the dynamic field (as the component mentions when you add one) - something like "Days Since Added" or "Days In Library" shows up better in track properties.

Cheers :)

Re: Mark recently added album as 'NEW'

Reply #5
Hi again. I followed anamorphic's instructions, and I did succeed. But one thing is broken now. To mark favourite tracks I use hotkey that writes rating tag into music files. Script presented on the screenshot displays star symbol in the column if some track has rating tag in it. But that script has stopped working after I installed foo_playcount  extension. Can someone help me to fix it? Thanks!

Re: Mark recently added album as 'NEW'

Reply #6
I'm not sure about this but doesn't foo_playcount take over the %rating% tag?
Try changing it to:
Code: [Select]
$ifequal($meta(rating),1,★,)


 

Re: Mark recently added album as 'NEW'

Reply #8
Hi again. Last request please :-[
Can someone help me make custom view for foo_uie_album list that would display only recently added albums?

 
SimplePortal 1.0.0 RC1 © 2008-2018