From 9fb35c7c7e5fb7b219ebf09aa7575085bbdcaf1f Mon Sep 17 00:00:00 2001 From: ahmedayman4a Date: Wed, 12 May 2021 16:11:39 +0200 Subject: [PATCH] Fix subtitles not being downloaded --- LLCD.DownloaderGUI/DownloaderForm.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LLCD.DownloaderGUI/DownloaderForm.cs b/LLCD.DownloaderGUI/DownloaderForm.cs index 4955ea9..e61bfa8 100644 --- a/LLCD.DownloaderGUI/DownloaderForm.cs +++ b/LLCD.DownloaderGUI/DownloaderForm.cs @@ -105,7 +105,7 @@ await Retry.Do(async () => lblCourse.Text = _currentVideoIndex++ + "/" + _videosCount; string videoName = $"[{j}] { ToSafeFileName(video.Title)}.mp4"; - if (String.IsNullOrWhiteSpace(video.Transcript)) + if (!String.IsNullOrWhiteSpace(video.Transcript)) { string captionName = $"[{j}] { ToSafeFileName(video.Title)}.srt"; await SaveSubtitles(Path.Combine(chapterDirectory.FullName, ToSafeFileName(captionName)), video.Transcript);