INTERACT FORUM

Please login or register.

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

Author Topic: Modify Artists view to show album duration  (Read 4001 times)

jacobacci

  • Galactic Citizen
  • ****
  • Posts: 256
Modify Artists view to show album duration
« on: February 22, 2017, 10:10:32 am »

My smartlist showing albums with duration > 80 minutes works very well. Thanks for the help.
Now I would like to add the total duration of albums to the standard audio/artists view? Is there any way to do this?
Thanks a lot
Logged

MikeO

  • Citizen of the Universe
  • *****
  • Posts: 798
Re: Modify Artists view to show album duration
« Reply #1 on: February 22, 2017, 11:41:19 am »

Modify the view, replace [album] to [album] [duration]

Or create a new view with that expression in it

Mike
Logged

jacobacci

  • Galactic Citizen
  • ****
  • Posts: 256
Re: Modify Artists view to show album duration
« Reply #2 on: February 22, 2017, 12:32:56 pm »

Thanks MikeO
For the life of me, I can't figure out how to do this.
I have attached a screenshot of what I tried to do, but it did not do anything at all. Sorry if I am thick.
 :)
Logged

ferday

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1732
Re: Modify Artists view to show album duration
« Reply #3 on: February 22, 2017, 04:18:50 pm »

How does your smart list display the info (custom field, expression column, or just straight exclusion?)

You need to make a custom field that loads your variable from the smart list
Logged

jacobacci

  • Galactic Citizen
  • ****
  • Posts: 256
Re: Modify Artists view to show album duration
« Reply #4 on: February 22, 2017, 04:46:45 pm »

The expression that is used in the smartlist is as follows;

Code: [Select]
[Media Type]=[Audio]
-[File Type]=[sacd]
[Disc #]=1
[=save(0,v_[album artist (auto)][album]_duration)1]=1
[=saveadd(v_[album artist (auto)][album]_duration,[duration, 0])1]=1
[=compare(load(v_[album artist (auto)][album]_duration), >, 4920)]=1

The smartlist simply exludes the files that do not fulfil the criteria (total album duration < 82 minutes).

I tried creating an expression column in my artist view and using [album] [duration] as expression, as suggested by MarkO, but that simply displays album and track duration for each track.
What I would like is the total duration for each album (i.e. the sum of the track durations).
Logged

jacobacci

  • Galactic Citizen
  • ****
  • Posts: 256
Re: Modify Artists view to show album duration
« Reply #5 on: February 22, 2017, 04:55:03 pm »

ok, got a step further:
- I figured out (obviously) that I need to be in album view to display album duration
- In album view I am able to select Thumbnail Text in the top left of the content pane
- Putting [Name] [duration] actually shows the Name of the album and the total time of the album

So far so good, but not quite what I was looking for.

I do the vast majority of work in MC in the artist view (categories). So I have a thumbnail with the stacked album images per artist in the top half of the screen. In the bottom half of the screen I have the tracklist per album with a large thumbnail of the album cover art at the left. Its beneath this album cover art thumbnail that I would ideally like to have the total album duration.

Would that be doable?
Logged

ferday

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1732
Re: Modify Artists view to show album duration
« Reply #6 on: February 22, 2017, 05:29:02 pm »

no, that's not doable
Logged

jacobacci

  • Galactic Citizen
  • ****
  • Posts: 256
Re: Modify Artists view to show album duration
« Reply #7 on: February 23, 2017, 02:22:57 am »

Would it be possible to use an expression column  in the artist view? No problem if it displays the total album duration on each track.
I tried combining something with the expression from the smartlist, but couldn't it to do anything useful.
Logged

ferday

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1732
Re: Modify Artists view to show album duration
« Reply #8 on: February 23, 2017, 03:12:45 am »

Yes, that is doable

=load(v_[album artist (auto)][album]_duration)

My syntax may not be flawless I'm not in front of MC.   
Logged

jacobacci

  • Galactic Citizen
  • ****
  • Posts: 256
Re: Modify Artists view to show album duration
« Reply #9 on: February 23, 2017, 06:43:19 am »

Thanks, ferday
Looks like progress. Your expression seems to output the total album duration in seconds. I tried to use ConvertDate and FormatDate to get it to show hours, minutes and seconds, but the explanation of the two functions in the wiki is not very straightforward.
Greateful for another pointer
Logged

ferday

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1732
Re: Modify Artists view to show album duration
« Reply #10 on: February 23, 2017, 07:14:25 am »

Formatduration() should get you there
Logged

jacobacci

  • Galactic Citizen
  • ****
  • Posts: 256
Re: Modify Artists view to show album duration
« Reply #11 on: February 23, 2017, 10:42:11 am »

Works brilliantly, thanks a lot ferday
;D
Logged

jacobacci

  • Galactic Citizen
  • ****
  • Posts: 256
Re: Modify Artists view to show album duration
« Reply #12 on: February 23, 2017, 11:01:16 am »

A small adaptation was needed to make it work for albums that have several discs:

=formatduration(load(v_[album artist (auto)][album][disc #]_duration))

and adapt the smartlist to consider the disc number as well.


Logged
Pages: [1]   Go Up