Skip to content

Commit

Permalink
Fix subtitles not being downloaded
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedayman4a committed May 12, 2021
1 parent 2e8d3aa commit 9fb35c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LLCD.DownloaderGUI/DownloaderForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

1 comment on commit 9fb35c7

@ahmedayman4a
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#3 Bug Fix

Please sign in to comment.