INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Thumbnail Text Script Help (SOLVED)  (Read 166 times)

HPBEME

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1174
  • Goodnight and Good Luck
Thumbnail Text Script Help (SOLVED)
« on: May 19, 2025, 06:43:41 pm »

I would like to show total track count for Artists with more than 1 album.  I can only get it to show the average number of tracks per album. I have no doubt it can be done, but I've been messing around with existing scripts for a while and it is beyond my pea brain. Solving this I'm sure is mere toddler's play for our good (god) forum friend zybex.

Here is the code I have for the tracks at the moment:
Code: [Select]
<b><font size="130"> ifElse(isEqual(groupcount(Artist),1,2),[AlbumArtist],isEqual([AlbumArtist],),[AlbumArtist],isEqual(groupcount(Artist),1,5),Multiple Artists)<//font><//b>
<font size="100">If(isEqual(groupcount(Album),1,5),(groupcount(Album) Albums ~ [Total Tracks] Tracks,(groupcount(album) Album ~ [Total Tracks] Tracks/))<//font>

(thx in advance)

FYI: top pic shows the sub-genre/album and the thumbnail text is exactly as I want (for reference only). When I drill down one more to the artist level, I want to show total tracks, and that is where I'm running into trouble
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3017
Re: Thumbnail Text Script Help
« Reply #1 on: May 20, 2025, 04:06:30 am »

Beetlejuice Beetlejuice Beetlejuice?

What's [AlbumArtist] ? Shouldn't it be [Album Artist] or [Album Artist (auto)] ?

Code: [Select]
<b><font size="130"> if(isEqual(groupcount(Artist),1,4),[Album Artist],Multiple Artists)<//font><//b>
<font size="100">If(isEqual(groupcount(Album),1,5),/(groupcount(Album) Albums,/(1 Album) ~ groupcount() Tracks/)<//font>
Logged

MGD_King

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 571
  • It's not easy being me, but it sure is fun!
Re: Thumbnail Text Script Help
« Reply #2 on: May 20, 2025, 06:55:06 am »

Here's what I use for viewing Genre.

Code: [Select]
<font size="110">[Name]<//b><//font>
save(groupcount(Artist), _n1)/
save(groupcount(album), _n2)/
save(groupcount(Name), _n3)/
[_n1] Artist/##/if(isEqual([_n1],1),,s)
[_n2] Album/##/if(isEqual([_n2],1),,s)
[_n3] Track/##/if(isEqual([_n3],1),,s)


Then when I drill in to a Genre, I use this to display the Artists in the Genre.

Code: [Select]
<font size="110">[Name]<//b><//font>
save(groupcount(album), _n2)/
save(groupcount(Name), _n3)/
[_n2] Album/##/if(isEqual([_n2],1),,s)
[_n3] Track/##/if(isEqual([_n3],1),,s)

Then when I drill in to an Artist, I use

Code: [Select]
<font size="110">[Name]<//b><//font>
save(groupcount(Name), _n1)/
[_n1] Track/##/if(isEqual([_n1],1),,s)

I hope that gets you in the right direction. :)
Logged

HPBEME

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1174
  • Goodnight and Good Luck
Re: Thumbnail Text Script Help
« Reply #3 on: May 20, 2025, 12:09:25 pm »

Beetlejuice Beetlejuice Beetlejuice?

What's [AlbumArtist] ? Shouldn't it be [Album Artist] or [Album Artist (auto)] ?
zybex! zybex! zybex!   It would be awesome if I could utter your name three times anytime I needed your help - your code worked perfectly - Thank you so much! 

As for "AlbumArtist" that is simply my display name for "Album Artist", and your code works regardless of which spelling I use for the field no problem.  I like using the so-called "CamelCase" naming method (capitalize each word and remove spaces) to compact the tag window field labels.  For example, the date tags which are a bit long (see pic).

MGD King, your code also does the trick, but zybex's version is compatible with how I layout the text in the higher level thumbnails without having to alter their code, which is what I was after. That said, your snippets are great alternatives and I envision repurposing them in the future for other customized thumbnail text. What you both provided helps me better understand how to manipulate and implement these scripts in the future.

Thank you both so much for taking the time to reply.
Logged
Pages: [1]   Go Up