diff --git a/src/Misc/Commands.cs b/src/Misc/Commands.cs index 178b31c..d4fe735 100644 --- a/src/Misc/Commands.cs +++ b/src/Misc/Commands.cs @@ -546,13 +546,16 @@ namespace mpvnet { int index = i; string file = Core.GetPropertyString($"playlist/{i}/filename"); + string title = Core.GetPropertyString($"playlist/{i}/title"); CommandPaletteItem item = new CommandPaletteItem() { - Text = file.FileName(), + Text = title, Action = () => Core.SetPropertyInt("playlist-pos", index) }; + if (string.IsNullOrEmpty(item.Text)) + item.Text = file.FileName(); if (string.IsNullOrEmpty(item.Text)) item.Text = file;