예제 #1
0
        internal void EndedSuccessfully(bool isItalian)
        {
            if (isItalian)
            {
                this.CurrentSpeed = "Finito.";
            }
            else
            {
                this.CurrentSpeed = "Finished.";
            }

            this.ended = Enums.HowEnded.SUCCESS;

            this.owner.Ended(this, Enums.HowEnded.SUCCESS, false);
        }
예제 #2
0
        internal void Failed(bool segmented, bool retry)
        {
            this.NotDownloaded = Math.Max(this.NotDownloaded, 0) + Math.Max(this.NotDownloadedW, 0);
            if (retry)
            {
                if (StartupForm.IsItalian)
                {
                    Console.WriteLine("È fallito il download di " + this.NotDownloaded + " video. È un bug noto, riprovo in modalità non-headless.");
                }
                else
                {
                    Console.WriteLine("Could not download " + this.NotDownloaded + " videos. This is a known bug. Retrying in non-headless mode.");
                }
            }
            else if (segmented)
            {
                if (StartupForm.IsItalian)
                {
                    Console.WriteLine("È fallito il download di " + this.NotDownloaded + " video. Riprova più tardi, oppure prova in modalità unsegmented.");
                }
                else
                {
                    Console.WriteLine("Could not download " + this.NotDownloaded + " videos. Please try again later, or try unsegmented mode.");
                }
            }
            else if (StartupForm.IsItalian)
            {
                Console.WriteLine("È fallito il download di " + this.NotDownloaded + " video. Riprova più tardi.");
            }
            else
            {
                Console.WriteLine("Could not download " + this.NotDownloaded + " videos. Please try again later.");
            }

            this.ended = Enums.HowEnded.FAIL;

            this.owner.Ended(this, Enums.HowEnded.FAIL, retry: retry);
        }