Skip to content

Commit

Permalink
Add support for m4v files
Browse files Browse the repository at this point in the history
  • Loading branch information
arition committed Nov 7, 2022
1 parent d4fdc0d commit e0e247e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SubRenamer/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ private void BtnSelectOriginalMovie_OnClick(object sender, RoutedEventArgs e)
var selectFile = new OpenFileDialog
{
Multiselect = true,
Filter = "视频文件(*.mp4;*.mkv;*.m2ts)|*.mp4;*.mkv;*.m2ts|所有文件 (*.*)|*.*"
Filter = "视频文件(*.mp4;*.m4v;*.mkv;*.m2ts)|*.mp4;*.m4v;*.mkv;*.m2ts|所有文件 (*.*)|*.*"
};
if (selectFile.ShowDialog() == true) ModelList.AddOriginalMovie(selectFile.FileNames);
}
Expand All @@ -88,7 +88,7 @@ private void BtnSelectMovie_OnClick(object sender, RoutedEventArgs e)
var selectFile = new OpenFileDialog
{
Multiselect = true,
Filter = "视频文件(*.mp4;*.mkv;*.m2ts)|*.mp4;*.mkv;*.m2ts|所有文件 (*.*)|*.*"
Filter = "视频文件(*.mp4;*.m4v;*.mkv;*.m2ts)|*.mp4;*.m4v;*.mkv;*.m2ts|所有文件 (*.*)|*.*"
};
if (selectFile.ShowDialog() == true) ModelList.AddMovie(selectFile.FileNames);
}
Expand Down
1 change: 1 addition & 0 deletions SubRenamer/ModelList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ public void AddDropFiles(IEnumerable<string> files, bool eatSushi)
switch (extension)
{
case ".mp4":
case ".m4v":
case ".mkv":
case ".m2ts":
if (!eatSushi || movieList.Count == 0)
Expand Down

0 comments on commit e0e247e

Please sign in to comment.