Ejemplo n.º 1
0
 public R <PlaylistInfo[], LocalStr> ListPlaylists()
 {
     if (confBot.LocalConfigDir is null)
     {
         return(new LocalStr("Temporary bots cannot have playlists"));                // TODO do this for all other methods too
     }
     lock (ioLock) {
         return(playlistCache.GetInfos());
     }
 }
Ejemplo n.º 2
0
 public PlaylistInfo[] GetAvailablePlaylists() => database.GetInfos();