INTERACT FORUM

Please login or register.

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

Author Topic: smartlist and automation  (Read 2177 times)

gappie

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4580
smartlist and automation
« on: February 24, 2009, 11:59:00 am »

is there a way to set the rules for a smartlist using automation?

i looked but could not find any..

 :)
gab
Logged

gappie

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4580
Re: smartlist and automation
« Reply #1 on: September 09, 2009, 07:52:05 am »

would it not be a nice addition. for now i can run a 'smartlist' inside a script, and move all files to a playlist. making a smartlist that way could be much easier.

 :)
gab
Logged

cncb

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3105
Re: smartlist and automation
« Reply #2 on: September 09, 2009, 10:03:29 am »

I haven't tried it yet but it may be possible to do it via the Set() method on MJPlaylistAutomation as discussed here:

http://yabb.jriver.com/interact/index.php?topic=47659.0
Logged
-Craig    MO 4Media remote and player:  Android/TV/Auto | iOS | Windows 10/UWP

gappie

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4580
Re: smartlist and automation
« Reply #3 on: September 09, 2009, 06:37:14 pm »

oh.. thanks a lot for that link. i have a look at that and see what i can make of it. and you are not 'pretty much on your own with this one" anymore.

 :)
gab
Logged

gappie

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4580
Re: smartlist and automation
« Reply #4 on: September 16, 2009, 11:22:25 am »

for when somebody is interested. it turned out to be not so complex. i just tested a bit here is the script. the examples changes the search in two different smartlists. one to show just the song that is playing (i did this before by cleaning a playlist and adding it) and one that gives all the songs that have the same genre (genres is a list field).



    Sub PLNSong(ByVal Nummer As String)
        Dim PlaylistNo As Integer
        Dim Regel As String
        PlaylistNo = 172836362
        Regel = "[Filename]=[" & Nummer & "]"
        Dim PlayL As MediaCenter.IMJPlaylistAutomation
        PlayL = mediaCenterRef.GetPlaylistByID(PlaylistNo)
        PlayL.Set("Search", Regel)
    End Sub

    Sub PLNGenre(ByVal genre As String)
        Dim PlaylistNo As Integer
        Dim Regel As String
        PlaylistNo = 805778929
        Regel = "[Media Type]=[Audio] [genres]=" & genre
        Dim PlayL As MediaCenter.IMJPlaylistAutomation
        PlayL = mediaCenterRef.GetPlaylistByID(PlaylistNo)
        PlayL.Set("Search", Regel)
    End Sub


 :)
gab
Logged
Pages: [1]   Go Up