Skip to main content
Topic: How to calculate and display total size of an album? (Read 343 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

How to calculate and display total size of an album?

Hello!
Is there any way to calculate total size (filesize) of an album (group, multiple tracks) and display it as info in the title? I'm using ELplaylist.
Thank you!

Re: How to calculate and display total size of an album?

Reply #1
I don't think Elplaylist has that option. Looking at the elplaylist wiki the only grouping info syntax available is group count (%el_item_count%) and sum length (%el_sum_length%). There's no %el_sum_filesize%.

Re: How to calculate and display total size of an album?

Reply #2
Thank you for replay, jazzthieve!
Yes, this is what I found. I hoped there might be an alternative.

Re: How to calculate and display total size of an album?

Reply #3
Hello!
Is there any way to calculate total size (filesize) of an album (group, multiple tracks) and display it as info in the title? I'm using ELplaylist.
Thank you!
Not with ELplaylist but with playlist switcher you can do!

Here you go:

1. Your request
File - Preferences - Playlist switcher - General - window below - erase all and copy - paste these settings:
%title% - $div(%filesize%,1048576).$num($muldiv($mod(%filesize%,1048576),100,1048576),2) MB
Apply.

2. Advanced settings
File - Preferences - Playlist switcher - General - window below - erase all and copy - paste these settings:
$if(%is_playing%,'NOW PLAYING PLAYLIST >>> ' $if(%is_active%,,$rgb(255,255,5)))%title%$tab()TRACKS TOTAL - %size%$tab()PLAYLIST TOTAL TIME - %length%$tab()TOTAL SIZE - $div(%filesize%,1048576).$num($muldiv($mod(%filesize%,1048576),100,1048576),2) MB
Apply.

You can see with these settings:
1. Highlight active playlist
2. Show you sum of all tracks in active playlist
3. Show you total length of all track in active playlist
4. Show you total filesize of all tracks in active playlist


 

Re: How to calculate and display total size of an album?

Reply #4
i will notice you:
1. %filesize% = show you file size in kilobytes
2. $div(%filesize%,1048576).$num($muldiv($mod(%filesize%,1048576),100,1048576),2) MB - show you size in megabytes

Re: How to calculate and display total size of an album?

Reply #5
Thank you, Simon_ Thunder, for the detailed answer!

I already have this setting in my Playlist Switcher. I was looking for a way to calculate the total size of an album, not of a playlist. In a playlist i may have multiple albums...

Anyway, I appreciate your effort!

 
SimplePortal 1.0.0 RC1 © 2008-2019