diff --git a/Changelog.md b/Changelog.md index 035f5d6..de621ad 100644 --- a/Changelog.md +++ b/Changelog.md @@ -12,6 +12,11 @@ change is that there exist too many different terms, addons, addins, extensions, modules, packages etc.. mpv.net follows Google Chrome as the worlds most popular extendable app, Chrome uses the term Extension. +- a thread synchronisation bug was fixed, the shutdown thread was aborted + if it was running more then 3 seconds, this caused the rating addon + to fail if it was waiting for a drive to wakeup +- a new JavaScript was included to show the playlist with a smaller font size, + the script is located at startup/scripts ### 4.7.7 diff --git a/mpv.net/Misc/Command.cs b/mpv.net/Misc/Command.cs index 09afded..4e89a95 100644 --- a/mpv.net/Misc/Command.cs +++ b/mpv.net/Misc/Command.cs @@ -164,7 +164,7 @@ namespace mpvnet string command = VB.Interaction.InputBox("Enter a mpv command to be executed.", "Execute Command", RegHelp.GetString(App.RegPath, "RecentExecutedCommand")); if (string.IsNullOrEmpty(command)) return; RegHelp.SetObject(App.RegPath, "RecentExecutedCommand", command); - mp.command_string(command, false); + mp.command(command, false); })); } diff --git a/mpv.net/Resources/inputConf.txt b/mpv.net/Resources/inputConf.txt index 6ea40c9..cbeaf81 100644 --- a/mpv.net/Resources/inputConf.txt +++ b/mpv.net/Resources/inputConf.txt @@ -141,7 +141,7 @@ t script-binding stats/display-stats #menu: View > Show Statistics T script-binding stats/display-stats-toggle #menu: View > Toggle Statistics Del script-binding osc/visibility #menu: View > Toggle OSC Visibility - F8 show-text ${playlist} 5000 #menu: View > Show Playlist + F8 script-binding show-playlist #menu: View > Show Playlist F9 show-text ${track-list} 5000 #menu: View > Show Audio/Video/Subtitle List c script-message mpv.net show-conf-editor #menu: Settings > Show Config Editor diff --git a/mpv.net/WPF/CommandPaletteWindow.xaml.cs b/mpv.net/WPF/CommandPaletteWindow.xaml.cs index 2141aa0..f4be8b3 100644 --- a/mpv.net/WPF/CommandPaletteWindow.xaml.cs +++ b/mpv.net/WPF/CommandPaletteWindow.xaml.cs @@ -104,7 +104,7 @@ namespace mpvnet { CommandItem item = ListView.SelectedItem as CommandItem; Close(); - mp.command_string(item.Command); + mp.command(item.Command); } } diff --git a/mpv.net/WinForms/MainForm.cs b/mpv.net/WinForms/MainForm.cs index 01b487f..e186e94 100644 --- a/mpv.net/WinForms/MainForm.cs +++ b/mpv.net/WinForms/MainForm.cs @@ -352,7 +352,7 @@ namespace mpvnet string path = item.Path.Replace("&", "&&"); MenuItem menuItem = ContextMenu.Add(path, () => { try { - mp.command_string(item.Command); + mp.command(item.Command); } catch (Exception ex) { Msg.ShowException(ex); } @@ -407,17 +407,17 @@ namespace mpvnet case 0x0200: // WM_MOUSEMOVE { Point pos = PointToClient(Cursor.Position); - mp.command_string($"mouse {pos.X} {pos.Y}"); + mp.command($"mouse {pos.X} {pos.Y}"); if (CursorHelp.IsPosDifferent(LastCursorPosChanged)) CursorHelp.Show(); } break; case 0x2a3: // WM_MOUSELEAVE - mp.command_string("mouse 1 1"); // osc won't always auto hide + mp.command("mouse 1 1"); // osc won't always auto hide break; case 0x203: // Native.WM.LBUTTONDBLCLK { Point pos = PointToClient(Cursor.Position); - mp.command_string($"mouse {pos.X} {pos.Y} 0 double"); + mp.command($"mouse {pos.X} {pos.Y} 0 double"); } break; case 0x02E0: // WM_DPICHANGED diff --git a/mpv.net/mpv/mp.cs b/mpv.net/mpv/mp.cs index f6c5cf1..4c15a72 100644 --- a/mpv.net/mpv/mp.cs +++ b/mpv.net/mpv/mp.cs @@ -429,7 +429,7 @@ namespace mpvnet Marshal.FreeHGlobal(mainPtr); } - public static void command_string(string command, bool throwException = false) + public static void command(string command, bool throwException = false) { if (Handle == IntPtr.Zero) return; int err = mpv_command_string(Handle, command);