INTERACT FORUM

Please login or register.

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

Author Topic: How can you tell an empty Playlist vs. PL Group?  (Read 1447 times)

RandyP

  • Regular Member
  • World Citizen
  • ***
  • Posts: 218
  • Notre Dame
How can you tell an empty Playlist vs. PL Group?
« on: January 13, 2003, 08:56:30 am »

I'm writing an Interface plug-in. To select files, there is an MC/MJ Browser Dialog that builds a tree from the contents of the datatbase.

Using IMJPlaylistsAutomation I'm given a list of IMJPlaylistAutomation pointers, each of which has a Path and Name Property. The list includes both Playlists and Playlist Groups.

If a Playlist Group has Playlists in it, the program can determine that a given entry is a Playlist Group as a result of parsing other Paths. However, I can't find a way to determine whether an empty IMJCPlaylistAutomation object is an empty Playlist Group or an empty Playlist. (I checked the TLH file for a "PlaylistGroup" Property)

Any thoughts?
Logged

RandyP

  • Regular Member
  • World Citizen
  • ***
  • Posts: 218
  • Notre Dame
Re: How can you tell an empty Playlist vs. PL Grou
« Reply #1 on: January 13, 2003, 02:32:06 pm »

Ya know... if the Playlist Name was zero-length for a Playlist Group, we could tell one from another.

A Playlist Group would always have a zero-length name with a complete Path (what it is now, with the name concatenated). Playlists would have both Names and Paths.

?
Logged
Pages: [1]   Go Up