INTERACT FORUM

Please login or register.

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

Author Topic: Christmas Smartlist  (Read 1236 times)

tom-erik

  • Recent member
  • *
  • Posts: 22
Christmas Smartlist
« on: December 31, 2012, 04:33:07 pm »

I've been messing around with the Smartlist features of MC and the expression language and I've hit either a limit/restriction or I really cannot see what to do in order to achieve what I want.

What I want is to have an iPod playlist that can be synced according to a |simple| rule that goes by the following in pseudo-language:
If (date is 17/12 - 31/12) iPod-playlist = Selection of playlists + Christmas playlists
Else iPod-playlist = All playlists - Christmas playlists

I only got to the part where I was able to create a Smartlist which would in terms only show Christmas songs if the date-condition was true:
([=isrange(formatdate(now(),dd),17-31)]=1 [=isequal(formatdate(now(),MM),12)]=1 playlistid==890647158)

If anybody could show me the correct way of achieving this or follow up on what I've got so far that'd be great!

Thanks

EDIT: Figured it out by myself:

(playlistid==300206285,=1037883251,=285845006,=799313373,=1061402893,=9580639,=158398860,=762888636,=646139320,=882264705,=98152103,=491747710,=520690250,=528156707,=883515281,=555253432,=458000643,=841082556,=162733265,=167035009,=1070301174,=751354014,=785986539,=789204467,=164556874,=207579013,=186969586,=484027667,=643215696,=456517317,=152040411,=9467291,=614608449,=205461190,=798571511,=127860890,=902071051,=899374334,=628145517,=631265401,=570870045,=743974603,=326402540,=296231663,=181457955,=656585276,=158176573,=178509023,=403573724,=376140463,=727123763,=806956092,=837151741 or ([=isrange(formatdate(now(),dd),17-31)]=1 [=isequal(formatdate(now(),MM),12)]=1 playlistid==925801173,=579113529,=1026389630,=496148000,=558212775,=61263305,=940563716 -playlistid==158398860,=555253432,=167035009,=877444310,=785986539,=789204467,=643215696,=456517317,=614608449,=205461190,=902071051)) ~sort=[Name],[Media Type],[Album Artist (auto)],[Album],[Disc #],[Track #]
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Christmas Smartlist
« Reply #1 on: December 31, 2012, 06:57:40 pm »

Nice.

Some suggestions:

  - Place your playlists in a group, and you can then include the single playlist group in the rule.  This will also prevent you from having to adjust the rule.  Consider also create two smartlists - one each that define the music you want during the Christmas and non-Christmas periods; then your Smartlist here is simpler.
  - You can simplify your date query:

    [=math(above(formatdate(now(), MM.dd), 12.16))]=1

    This uses a nice trick to combine the month/day into a decimal, so you can use a single, easy numerical comparison - it reads easier (is Now > 12/16?)
Logged
The opinions I express represent my own folly.

tom-erik

  • Recent member
  • *
  • Posts: 22
Re: Christmas Smartlist
« Reply #2 on: December 31, 2012, 07:35:07 pm »

Thank you for the input, I didn't realize the Math()/Above() function could make such logic possible. Cool.

I mainly wanted the playlist section to look clean so until you make it possible to hide underlying playlists or tell me a solution which would imply the same I will keep it like this, even though it might become more complicated over time, but my library consists of 700,000 songs, if the category's not made yet it most likely will not surface either! Hehe
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Christmas Smartlist
« Reply #3 on: December 31, 2012, 07:42:50 pm »

I have a bunch of "helper" smartlists; these are included / used by other playlists.  I group them in a Helper playlist grouping, which is almost always collapsed, so it never gets in the way.

btw. I'm just a user like you, not affiliated with JRiver.
Logged
The opinions I express represent my own folly.

tom-erik

  • Recent member
  • *
  • Posts: 22
Re: Christmas Smartlist
« Reply #4 on: December 31, 2012, 07:47:45 pm »

Duly noted. I did think of making a helper group but for now this will do just fine.
Logged
Pages: [1]   Go Up