public bool getGridLayout(string id) { bool grid = true; _track_info_db.Get("grid-" + id, out grid, true); return(grid); }
public void Load() { string pls = null; _db.Get("playlist:" + _name, out pls, null); if (pls == null) { return; } else { string [] entries = Regex.Split(pls, "#@%@#"); //Hyena.Log.Information ("playlist name="+pls+", entries="+entries); foreach (string e in entries) { Hyena.Log.Information("entry=" + e); if (e != "") { string [] ids = Regex.Split(e, "%%%"); string cs_id = ids[0].Substring("cuesheet=".Length); string cs_e = ids[1].Substring("entry=".Length); //Hyena.Log.Information ("finding: cs-id="+cs_id+", e-id="+cs_e); CueSheetEntry entry = _csc.FindEntry(cs_id, cs_e); if (entry != null) { Hyena.Log.Information("adding entry:" + entry); Add(entry); } } } } }