HydrogenAudio

Hosted Forums => foobar2000 => 3rd Party Plugins - (fb2k) => Topic started by: edwardsch on 2019-02-05 20:50:12

Title: How to calculate and display total size of an album?
Post by: edwardsch on 2019-02-05 20:50:12
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!
Title: Re: How to calculate and display total size of an album?
Post by: jazzthieve on 2019-02-05 20:57:49
I don't think Elplaylist has that option. Looking at the elplaylist wiki (http://wiki.hydrogenaud.io/index.php?title=Foobar2000:Components_0.9/ELplaylist_panel_(foo_uie_elplaylist)#.25el_group_depth.25) the only grouping info syntax available is group count (%el_item_count%) and sum length (%el_sum_length%). There's no %el_sum_filesize%.
Title: Re: How to calculate and display total size of an album?
Post by: edwardsch on 2019-02-05 21:02:54
Thank you for replay, jazzthieve!
Yes, this is what I found. I hoped there might be an alternative.
Title: Re: How to calculate and display total size of an album?
Post by: Simon_ Thunder on 2019-02-06 23:11:07
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

Title: Re: How to calculate and display total size of an album?
Post by: Simon_ Thunder on 2019-02-07 11:00:01
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
Title: Re: How to calculate and display total size of an album?
Post by: edwardsch on 2019-02-11 09:32:09
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!