This commit is contained in:
stax76
2024-07-17 02:44:48 +02:00
parent e6defd3e55
commit 7c38e823c1
4 changed files with 21 additions and 11 deletions

View File

@@ -3,11 +3,12 @@
- Korean, Russian and Turkish translation added, Japanese translation fixed. Thanks to the translation team! - Korean, Russian and Turkish translation added, Japanese translation fixed. Thanks to the translation team!
- Action/Workflow/Auto build fix and update. - Action/Workflow/Auto build fix and update.
- Full support for select.lua which is a new simple command palette script embedded into mpv/libmpv. - New default bindings and menu items for select.lua which is a new simple mpv built-in command palette script.
In the context menu select.lua features can be found under 'View > On Screen Menu'. In the context menu select.lua features can be found under `View > On Screen Menu`.
https://github.com/mpv-player/mpv/blob/master/player/lua/select.lua https://github.com/mpv-player/mpv/blob/master/player/lua/select.lua
- The helper script 'Tools\update-mpv-and-libmpv.ps1' no longer uses command line arguments, - The helper script 'Tools\update-mpv-and-libmpv.ps1' no longer uses command line arguments,
it uses now the Path environment variable to find mpv and mpv.net. it uses now the Path environment variable to find mpv and mpv.net.
- Fix loading of DVD ISO files.
# v7.1.1.0 (2024-02-03) # v7.1.1.0 (2024-02-03)

View File

@@ -2,7 +2,6 @@
using NGettext.Wpf; using NGettext.Wpf;
using System.Globalization; using System.Globalization;
using System.Windows.Interop;
namespace MpvNet.Windows.WPF; namespace MpvNet.Windows.WPF;

View File

@@ -16,8 +16,6 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Folder Include="Extension\" />
<Folder Include="Input\" />
<Folder Include="Docs\" /> <Folder Include="Docs\" />
</ItemGroup> </ItemGroup>

View File

@@ -453,7 +453,7 @@ public class MainPlayer : MpvClient
} }
if (ext == "iso") if (ext == "iso")
LoadBluRayISO(file); LoadISO(file);
else if(FileTypes.Subtitle.Contains(ext)) else if(FileTypes.Subtitle.Contains(ext))
CommandV("sub-add", file); CommandV("sub-add", file);
else if (!FileTypes.IsMedia(ext) && !file.Contains("://") && Directory.Exists(file) && else if (!FileTypes.IsMedia(ext) && !file.Contains("://") && Directory.Exists(file) &&
@@ -488,12 +488,24 @@ public class MainPlayer : MpvClient
return path; return path;
} }
public void LoadBluRayISO(string path) public void LoadISO(string path)
{ {
Command("stop"); using var mi = new MediaInfo(path);
Thread.Sleep(500);
SetPropertyString("bluray-device", path); if (mi.GetGeneral("Format") == "ISO 9660 / DVD Video")
LoadFiles(new[] { @"bd://" }, false, false); {
Command("stop");
Thread.Sleep(500);
SetPropertyString("dvd-device", path);
LoadFiles(new[] { @"dvd://" }, false, false);
}
else
{
Command("stop");
Thread.Sleep(500);
SetPropertyString("bluray-device", path);
LoadFiles(new[] { @"bd://" }, false, false);
}
} }
public void LoadDiskFolder(string path) public void LoadDiskFolder(string path)