improve functionality of M3U8Playlist constructor