예제 #1
0
        private void GetAvailableFormats(object sender, DoWorkEventArgs e)
        {
            SVD = YoutubeHelper.GetVideoData((string)e.Argument);

            //JArray formats = vi.Formats;
            JArray formats       = SVD.AdaptiveFormats;
            JArray listedFormats = new JArray();
            int    pg            = 0;

            foreach (var info in formats)
            {
                if (info["mimeType"].ToString() != "video/webm; codecs=\"vp9\"")
                {
                    listedFormats.Add(info);

                    lister.ReportProgress(pg, info);
                    pg++;
                }
            }
        }