INTERACT FORUM

Please login or register.

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

Author Topic: [Feature request] MJCurPlaylist.GetFiles / MJCurPlaylist.GetFilesByKey  (Read 695 times)

Messiahs

  • Galactic Citizen
  • ****
  • Posts: 432

please can you add two new functions to IMJCurPlaylistAutomation ?

because:
Code: [Select]
Dim MJFiles As IMJFilesAutomation = MJFilesAutomation.Search("~d=t")doesn't work (see here: http://yabb.jriver.com/interact/index.php?topic=42512.msg295287#msg295287)

perhaps you can add something like this:
Code: [Select]
'same like MJFileAutomation * GetFileByKey(number nKey)
MJFiles = MJCurPlaylist.GetFilesByKey(sFileKey)

or

boolean = MJCurPlaylist.CheckIfFileIdIsAlreadyInPlaynowQueue(sFileKey)

and

Code: [Select]
'gets all playing now Files
MJFiles = MJCurPlaylist.GetAllFiles()

or please correct:
Dim MJFiles As IMJFilesAutomation = MJFilesAutomation.Search("~d=t")


regards
Messiahs

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 41960
  • Shoes gone again!
Re: [Feature request] MJCurPlaylist.GetFiles / MJCurPlaylist.GetFilesByKey
« Reply #1 on: January 21, 2008, 11:27:18 am »

I'm not sure I understand what you're trying to do, but if you just want to search a files collection for a certain key, you could write your own function with a for loop.  If you're doing multiple lookups, build an index / map.
Logged
Matt Ashland, JRiver Media Center
Pages: [1]   Go Up