Esempio n. 1
0
        public static string GetVlcDashArg2(string videolink)
        {
            // var youtube = new YoutubeClient();
            ClassYTExplode yte = new ClassYTExplode();

            //  string[] height = { "2160", "1440", "1080", "720", "480", "360" };
            Cursor.Current = Cursors.WaitCursor;

            int maxres = Properties.Settings.Default.maxres;

            //    if (maxres <= 3)
            Task.Run(async() => { await yte.PullDASH(videolink, maxres); }).Wait();
            //else
            //    Task.Run(async () => { await ClassYTExplode.PullNoDASH(videolink, maxres); }).Wait();

            Cursor.Current = Cursors.Default;


            if (ClassYTExplode.videoUrlnew == "noDash")
            {
                return("false");
            }
            else
            {
                return(ClassYTExplode.videoUrlnew + " --input-slave=" + ClassYTExplode.audioUrl);
            }
        }
Esempio n. 2
0
        public static string GetTitle_client(string url)
        {
            // https://stackoverflow.com/questions/329307/how-to-get-website-title-from-c-sharp
            // var youtube = new YoutubeClient();
            ClassYTExplode yte = new ClassYTExplode();

            ClassYTExplode.VideoInfo = null;

            Task.Run(async() => { await yte.PullInfo(url); }).Wait();

            if (string.IsNullOrEmpty(ClassYTExplode.videoTitle))
            {
                return("N/A");
            }
            else
            {
                return(ClassYTExplode.videoTitle);
            }
        }