﻿using roadie.Data;
using roadie.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace roadie.Library.Utility
{
    public sealed class M3UHelper
    {
        public M3UHelper()
        { }

        public byte[] Generate(IEnumerable<UserReleaseTrackInfo> tracks)
        {
            //m3u = io.StringIO()
            //m3u.write("#EXTM3U\n\n")
            //for trackInfo in trackInfos:
            //    m3u.write(
            //        "#EXTINF:" + trackInfo['Length'] + "," + trackInfo['ArtistName'] + " - " + trackInfo['Title'] + "\n")
            //    m3u.write(trackInfo['StreamUrl'] + "\n")
            //m3u.write("#EXT-X-ENDLIST\n")
            //return io.BytesIO(str.encode(m3u.getvalue()))
            throw new NotImplementedException();
        }

        

    }
}
