Skip to content

Commit

Permalink
Fix audio only video downloads having .mp4 extension in WPF (#1109)
Browse files Browse the repository at this point in the history
  • Loading branch information
ScrubN authored Jun 23, 2024
1 parent 7c0dd55 commit 07f97c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TwitchDownloaderWPF/PageVodDownload.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ private async void SplitBtnDownloader_Click(object sender, RoutedEventArgs e)
FileName = FilenameService.GetFilename(Settings.Default.TemplateVod, textTitle.Text, currentVideoId.ToString(), currentVideoTime, textStreamer.Text,
checkStart.IsChecked == true ? new TimeSpan((int)numStartHour.Value, (int)numStartMinute.Value, (int)numStartSecond.Value) : TimeSpan.Zero,
checkEnd.IsChecked == true ? new TimeSpan((int)numEndHour.Value, (int)numEndMinute.Value, (int)numEndSecond.Value) : vodLength,
viewCount, game) + ".mp4"
viewCount, game) + (comboQuality.Text.Contains("Audio", StringComparison.OrdinalIgnoreCase) ? ".m4a" : ".mp4")
};
if (saveFileDialog.ShowDialog() == false)
{
Expand Down

0 comments on commit 07f97c0

Please sign in to comment.