INTERACT FORUM

Please login or register.

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

Author Topic: Embed a smartlist inside a playlist  (Read 2723 times)

GadgetBoy

  • Junior Woodchuck
  • **
  • Posts: 96
Embed a smartlist inside a playlist
« on: March 07, 2015, 07:20:04 am »

I have several smartlists I have created to simulate "radio stations". One of mine is an Acoustic smartlist that plays all songs tagged as "acoustic" with a 5 star rating. The problem is, I have other songs I would like to include in the playlist that may not be tagged "acoustic".

Can I create a playlist of those other songs and then embed the smartlist as part of that playlist?

Logged
LazyAutomtion
www.lazyautomation.com

la·zy [ley-zee] - Resistant to work or exertion; disposed to idleness.
au·to·ma·tion [aw-tuh-mey-shuh n] - The automatic operation or control of equipment, a process, or a system.

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Embed a smartlist inside a playlist
« Reply #1 on: March 07, 2015, 07:53:09 am »

No, but you can go the other way.  Add this rule to your Smartlist:
Playlist - Is Any - <Your Manual Playlist>

You'll need to do an OR on it.
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

GadgetBoy

  • Junior Woodchuck
  • **
  • Posts: 96
Re: Embed a smartlist inside a playlist
« Reply #2 on: March 07, 2015, 08:12:58 am »

I hadn't thought of it from the other direction... Thanks...

How do I add the rule as an "OR"?

I have genre = acoustic
rating = 4 or 5 stars

Do I have to add a custom rule?

Thanks!
Logged
LazyAutomtion
www.lazyautomation.com

la·zy [ley-zee] - Resistant to work or exertion; disposed to idleness.
au·to·ma·tion [aw-tuh-mey-shuh n] - The automatic operation or control of equipment, a process, or a system.

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Embed a smartlist inside a playlist
« Reply #3 on: March 07, 2015, 08:20:06 am »

How do I add the rule as an "OR"?

You can do it in the smartlist editor with the bracket things, but those confuse me.  I always do it through the Import/Export item.

Add the Playlist rule I mentioned above, then go to the Import/Export and copy-paste what you get here.  I'll show you with your own list.
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

GadgetBoy

  • Junior Woodchuck
  • **
  • Posts: 96
Re: Embed a smartlist inside a playlist
« Reply #4 on: March 07, 2015, 08:29:33 am »

I think I may have figured it out (but haven't tried it yet).

1 - Create my Smartlist (eg "Acoustic Radio")
2 - Create my static playlist (the one off songs I want added) (eg Acoustic Playlist")
3 - Create the final playlist that includes the smartlist and the static playlist. (eg Playlist is any Acoustic Radio, Acoustic Playlist)

That should work, but I am adding an extra step I don't need?

Logged
LazyAutomtion
www.lazyautomation.com

la·zy [ley-zee] - Resistant to work or exertion; disposed to idleness.
au·to·ma·tion [aw-tuh-mey-shuh n] - The automatic operation or control of equipment, a process, or a system.

GadgetBoy

  • Junior Woodchuck
  • **
  • Posts: 96
Re: Embed a smartlist inside a playlist
« Reply #5 on: March 07, 2015, 08:30:43 am »

Here is the export:

[Media Type]=[Audio] [Rating]=>=4 [Genre]=[Acoustic],[Vocal],[New Age]
playlistid==1051196379 ~sort=Random
Logged
LazyAutomtion
www.lazyautomation.com

la·zy [ley-zee] - Resistant to work or exertion; disposed to idleness.
au·to·ma·tion [aw-tuh-mey-shuh n] - The automatic operation or control of equipment, a process, or a system.

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Embed a smartlist inside a playlist
« Reply #6 on: March 07, 2015, 09:22:31 am »

Paste this in:

Code: [Select]
([Media Type]=[Audio] [Rating]=>=4 [Genre]=[Acoustic],[Vocal],[New Age]) or (playlistid==1051196379) ~sort=Random
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

GadgetBoy

  • Junior Woodchuck
  • **
  • Posts: 96
Re: Embed a smartlist inside a playlist
« Reply #7 on: March 07, 2015, 11:36:00 am »

The parenthesis didn't seem to do it, but creating the two playlists separately and then combining them with a third playlist seemed to do the trick...
Logged
LazyAutomtion
www.lazyautomation.com

la·zy [ley-zee] - Resistant to work or exertion; disposed to idleness.
au·to·ma·tion [aw-tuh-mey-shuh n] - The automatic operation or control of equipment, a process, or a system.

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Embed a smartlist inside a playlist
« Reply #8 on: March 07, 2015, 05:11:01 pm »

The parenthesis didn't seem to do it, but creating the two playlists separately and then combining them with a third playlist seemed to do the trick...

You can do it with the parenthesis.  I might have messed it up a bit.

Hold on...
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Embed a smartlist inside a playlist
« Reply #9 on: March 07, 2015, 05:15:30 pm »

Yeah.... I forgot.  The OR-ed terms need an outer set of parenthesis too (and I should have left the Media Type rule outside them entirely).

Code: [Select]
[Media Type]=[Audio] (([Rating]=>=4 [Genre]=[Acoustic],[Vocal],[New Age]) or playlistid==1051196379) ~sort=Random
The idea is that you want to surround the entire OR part in parenthesis so that it combines into a single term.  So, in this case:

* [Media Type]=[Audio]: applies to the whole thing*
then...
* (term 2 or term 3) where
** term 2 is ([Rating]=>=4 [Genre]=[Acoustic],[Vocal],[New Age]): the inner parenthesis make this into a single term
** term 3 is playlistid==1051196379: parenthesis aren't required here because it is already a single term
then...
* modifier ~sort applies to the whole thing

Sorry I messed it up.  I should have tested it, but I don't have a matching PlaylistID, of course.  I did test this one and just substituted one of my own lists, so I'm sure this version works right.  You can do it the way you did it with three lists, but Playlist references can be fragile, and I'd combine it into a single list if possible.

* Having this as a "global rule" is really unnecessary since your manual list assuredly only contains audio files, but you really do want the whole list to be audio, so why not do it right.
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/
Pages: [1]   Go Up