INTERACT FORUM

Please login or register.

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

Author Topic: Random album smartlist  (Read 3500 times)

tabalooga

  • Regular Member
  • Recent member
  • *
  • Posts: 12
Random album smartlist
« on: February 17, 2005, 03:36:36 am »

Hi everybody,

I want to create a smartlist that randomly selects one full album. So far I couldn't figure out how to accomplish that.

Can anybody help?

TIA!

T.
Logged

Alex B

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 10121
  • The Cosmic Bird
Re: Random album smartlist
« Reply #1 on: February 17, 2005, 05:27:42 am »

Code: [Select]
~sort=[Random] ~a ~limit=1,-1,[Album],[Album Artist (auto)]
EDIT
It wasn't perfect. This is better:
Code: [Select]
-[Album]=[] -[Artist]=[] -[Album Type]=[Multiple artists (incomplete)],[Single artist (incomplete)] ~sort=[Random] ~a ~limit=1,-1,[Album Artist (Auto)] ~limit=1,-1,[Album]
EDIT 2
I found that the auto album artist is not always correct for some reason. This one checks the folder instead of the "Album Artist (auto)" field:
Code: [Select]
-[Album]=[] -[Artist]=[] -[Album Type]=[Multiple artists (incomplete)],[Single artist (incomplete)] ~sort=[Random] ~a ~limit=1,-1,[Filename (path)] ~limit=1,-1,[Album]
You can limit it to audio files if you like to. I have also images with the "Album" tag.
Logged
The Cosmic Bird - a triple merger of galaxies: http://eso.org/public/news/eso0755

britade

  • Guest
Re: Random album smartlist
« Reply #2 on: February 18, 2005, 03:32:46 am »

Excellent!  Thanks Tabalooga (and Alex B for suggesting it).  This is exactly what I was looking for as well.

Regards,

Adrian.
Logged

NoCodeUK

  • Citizen of the Universe
  • *****
  • Posts: 1820
Re: Random album smartlist
« Reply #3 on: February 18, 2005, 04:44:54 am »

[Media Type]=[Audio] ~n=1 ~a

This is my Random Album smartlist.  Bit shorter and seems to work okay.  Basically just chooses one random audio file then populates its whole album...

Adam
Logged
"It's called No Code because it's full of code. It's misinformation." - Eddie Vedder

Alex B

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 10121
  • The Cosmic Bird
Re: Random album smartlist
« Reply #4 on: February 18, 2005, 05:23:48 am »

[Media Type]=[Audio] ~n=1 ~a

This is my Random Album smartlist. Bit shorter and seems to work okay. Basically just chooses one random audio file then populates its whole album...

Adam

Clever and interesting. Seems like I am learning more about MC all the time. I didn't know that a search can first exclude and then add some of the excluded. I thought that a later search expression can filter only what was left after the previous.

I shortened it a bit more for getting the album images too:

~n=1 ~a

Some things in life are simple.


EDIT

It doesn't work always, partly because my library is not perfectly tagged (yet?).
Those things I added excluded some imperfections and special cases.
Logged
The Cosmic Bird - a triple merger of galaxies: http://eso.org/public/news/eso0755

NoCodeUK

  • Citizen of the Universe
  • *****
  • Posts: 1820
Re: Random album smartlist
« Reply #5 on: February 18, 2005, 06:21:53 am »

It is doing what you thought. The ~a command is a special case.  It forces any search parameters to always display their whole album.  It isn't actually adding any files back in.

Adam
Logged
"It's called No Code because it's full of code. It's misinformation." - Eddie Vedder

Alex B

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 10121
  • The Cosmic Bird
Re: Random album smartlist
« Reply #6 on: February 18, 2005, 06:37:14 am »

Thanks for the clarification.
Logged
The Cosmic Bird - a triple merger of galaxies: http://eso.org/public/news/eso0755

bmustang

  • Recent member
  • *
  • Posts: 31
Re: Random album smartlist
« Reply #7 on: February 18, 2005, 09:26:15 am »

Here my problem: When I send Smartlist in the PlayNow zone with the scheduler (Line Command: /Play TREEPATH=Playlists \ ListN), my Smartlist which was sorted as I wanted is sorted again in PlayNow on field SEQ and that mixes my music in a random way. I see that Smartlist does not have field SEQ unlike Playlist which once sent in PlayNow preserves the sorting of Playlist. Also, field SEQ in PlayNow cannot be removed... why?? It does not preserve by defect another field sorted "like Artist"... why?? It seems that to solve the problem of Smartlists! one would need that field SEQ is posted by defect, like Playlist. the Use of Smartlist is very interesting for me, then thank you to propose to me is a solution or to envisage an update of MC 11.
Logged

tabalooga

  • Regular Member
  • Recent member
  • *
  • Posts: 12
Re: Random album smartlist
« Reply #8 on: February 19, 2005, 06:01:45 am »

Wooooohooo!!!

Exactly what I was looking for! Thanks a lot Alex!

Cheers, T.
Logged

Couch

  • Regular Member
  • Junior Woodchuck
  • **
  • Posts: 86
  • Music. Sweet Music.
Re: Random album smartlist
« Reply #9 on: February 28, 2005, 08:05:44 am »

Hmm. OK - So I see that this selects 1 album at random - How about Sorting multiple Albums at random.

To Clarify - Play tyhe Albums themselves sequentially by track. But the order in which the albums are selected is Random...
Logged

adamsp70

  • Regular Member
  • World Citizen
  • ***
  • Posts: 247
  • Unwired for sound...
Re: Random album smartlist
« Reply #10 on: February 28, 2005, 08:57:27 am »

[media type]=[audio] ~sort=[Random] ~n=8 ~a ~sort=[Album]

This will select 8 random albums and play all the tracks in the right order. Change n=8 to a different number for a different number of random albums!
Logged

RobOK

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 615
  • long time MC user for PC, iPod and Tivo
Re: Random album smartlist
« Reply #11 on: February 28, 2005, 10:09:43 am »

WOW!  That is v. cool !!
Logged
Pages: [1]   Go Up