From 9f91afe60edf5ef4944bd6526feeeffe1fb01199 Mon Sep 17 00:00:00 2001 From: arition Date: Mon, 8 Apr 2024 01:43:22 -0700 Subject: [PATCH] add support for webm --- SubRenamer/MainWindow.xaml.cs | 4 ++-- SubRenamer/ModelList.cs | 1 + SubRenamer/Properties/AssemblyInfo.cs | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/SubRenamer/MainWindow.xaml.cs b/SubRenamer/MainWindow.xaml.cs index fbe9156..6f756af 100644 --- a/SubRenamer/MainWindow.xaml.cs +++ b/SubRenamer/MainWindow.xaml.cs @@ -89,7 +89,7 @@ private void BtnSelectOriginalMovie_OnClick(object sender, RoutedEventArgs e) var selectFile = new OpenFileDialog { Multiselect = true, - Filter = "视频文件(*.mp4;*.m4v;*.mkv;*.m2ts)|*.mp4;*.m4v;*.mkv;*.m2ts|所有文件 (*.*)|*.*" + Filter = "视频文件(*.mp4;*.m4v;*.mkv;*.m2ts;*.webm)|*.mp4;*.m4v;*.mkv;*.m2ts;*.webm|所有文件 (*.*)|*.*" }; if (selectFile.ShowDialog() == true) ModelList.AddOriginalMovie(selectFile.FileNames); } @@ -99,7 +99,7 @@ private void BtnSelectMovie_OnClick(object sender, RoutedEventArgs e) var selectFile = new OpenFileDialog { Multiselect = true, - Filter = "视频文件(*.mp4;*.m4v;*.mkv;*.m2ts)|*.mp4;*.m4v;*.mkv;*.m2ts|所有文件 (*.*)|*.*" + Filter = "视频文件(*.mp4;*.m4v;*.mkv;*.m2ts;*.webm)|*.mp4;*.m4v;*.mkv;*.m2ts;*.webm|所有文件 (*.*)|*.*" }; if (selectFile.ShowDialog() == true) ModelList.AddMovie(selectFile.FileNames); } diff --git a/SubRenamer/ModelList.cs b/SubRenamer/ModelList.cs index ddcf504..19b454d 100644 --- a/SubRenamer/ModelList.cs +++ b/SubRenamer/ModelList.cs @@ -125,6 +125,7 @@ public void AddDropFiles(IEnumerable files, bool eatSushi) case ".m4v": case ".mkv": case ".m2ts": + case ".webm": if (!eatSushi || movieList.Count == 0) movieList.Add(file); else if (Utils.TestSimilarity(new FileInfo(movieList[0]).Name, new FileInfo(file).Name) > 30) diff --git a/SubRenamer/Properties/AssemblyInfo.cs b/SubRenamer/Properties/AssemblyInfo.cs index 5615df7..562fb3d 100644 --- a/SubRenamer/Properties/AssemblyInfo.cs +++ b/SubRenamer/Properties/AssemblyInfo.cs @@ -51,5 +51,5 @@ //可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值, // 方法是按如下所示使用“*”: : // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("4.0.0.0")] -[assembly: AssemblyFileVersion("4.0.0.0")] +[assembly: AssemblyVersion("4.2.0.0")] +[assembly: AssemblyFileVersion("4.2.0.0")]