Exemplo n.º 1
0
        /// <summary>
        /// プレイリストを作成する
        /// </summary>
        /// <param name="playlistData"></param>
        /// <returns></returns>
        public string CreatePlaylist(IPlaylist playlistData)
        {
            var paths    = playlistData.GetAllFile();
            var listdata = new List <string>
            {
                "#-----SUMMARY-----#",
                $"Name={playlistData.PlaylistName}",
                string.Empty,
                "#-----CONTENT-----#",
                $"-{Path.GetDirectoryName(paths.First())}",
            };

            listdata.AddRange(paths);
            listdata.Add(string.Empty);
            return(string.Join(Environment.NewLine, listdata));
        }