INTERACT FORUM

More => Old Versions => Media Center 12 (Development Ended) => Topic started by: Messiahs on January 19, 2008, 12:38:27 pm

Title: [Feature request] MJCurPlaylist.GetFiles / MJCurPlaylist.GetFilesByKey
Post by: Messiahs on January 19, 2008, 12:38:27 pm
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
Title: Re: [Feature request] MJCurPlaylist.GetFiles / MJCurPlaylist.GetFilesByKey
Post by: Matt 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.