fix #676
This commit is contained in:
@@ -3,11 +3,12 @@
|
||||
|
||||
- Korean, Russian and Turkish translation added, Japanese translation fixed. Thanks to the translation team!
|
||||
- Action/Workflow/Auto build fix and update.
|
||||
- Full support for select.lua which is a new simple command palette script embedded into mpv/libmpv.
|
||||
In the context menu select.lua features can be found under 'View > On Screen Menu'.
|
||||
- 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`.
|
||||
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,
|
||||
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)
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
using NGettext.Wpf;
|
||||
|
||||
using System.Globalization;
|
||||
using System.Windows.Interop;
|
||||
|
||||
namespace MpvNet.Windows.WPF;
|
||||
|
||||
|
||||
@@ -16,8 +16,6 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Extension\" />
|
||||
<Folder Include="Input\" />
|
||||
<Folder Include="Docs\" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
@@ -453,7 +453,7 @@ public class MainPlayer : MpvClient
|
||||
}
|
||||
|
||||
if (ext == "iso")
|
||||
LoadBluRayISO(file);
|
||||
LoadISO(file);
|
||||
else if(FileTypes.Subtitle.Contains(ext))
|
||||
CommandV("sub-add", file);
|
||||
else if (!FileTypes.IsMedia(ext) && !file.Contains("://") && Directory.Exists(file) &&
|
||||
@@ -488,13 +488,25 @@ public class MainPlayer : MpvClient
|
||||
return path;
|
||||
}
|
||||
|
||||
public void LoadBluRayISO(string path)
|
||||
public void LoadISO(string path)
|
||||
{
|
||||
using var mi = new MediaInfo(path);
|
||||
|
||||
if (mi.GetGeneral("Format") == "ISO 9660 / DVD Video")
|
||||
{
|
||||
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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user