public static DetailedPlaylist getDetailedPlaylist(string playlist) { DetailedPlaylist t = new DetailedPlaylist(); t.tags = getTagsOfPlaylist(playlist).ToArray(); t.description = getSongPathsAsStrings(playlist).Count.ToString(); t.name = new DirectoryInfo(playlist).Name; t.date = getLastWriteDateOfPlaylists(playlist); return(t); }
public static List <DetailedPlaylist> getSpecialPlaylists(SpecialPlaylists playlists = SpecialPlaylists.All) { List <DetailedPlaylist> list = new List <DetailedPlaylist>(); if (playlists == SpecialPlaylists.Recents || playlists == SpecialPlaylists.All) { DetailedPlaylist t = new DetailedPlaylist(); t.tags = getTagsOfPlaylist(recentsFI.ToArray()).ToArray(); t.name = "Breaking"; t.description = "your 20 newest tracks"; t.date = DateTime.Now.ToString("d MMM yyyy"); list.Add(t); } return(list); }