From b94f9de58242c6a8c156567abb7dc0ea7744dacb Mon Sep 17 00:00:00 2001 From: Frank Skare Date: Mon, 14 Oct 2019 12:10:30 +0200 Subject: [PATCH] switch --queue added --- Changelog.md | 7 ++++--- mpv.net/Misc/Program.cs | 5 +++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Changelog.md b/Changelog.md index dd357e7..b046a6f 100644 --- a/Changelog.md +++ b/Changelog.md @@ -2,9 +2,10 @@ - pressing shift key suppresses auto-load-folder - switch --queue added, this will not clear the playlist but append - and it will suppress auto-load-folder. The installer adds - a 'Add to mpv.net playlist' context menu item, people with - portable download might use [Open with++](https://github.com/stax76/OpenWithPlusPlus#add-to-mpvnet-playlist) + and it will suppress auto-load-folder. To get a 'Add to mpv.net playlist' + context menu item in explorer with multi selection support use my + [Open with++](https://github.com/stax76/OpenWithPlusPlus#add-to-mpvnet-playlist) shell extension, as far as I know multi selection + can not be done using the Registry ### 5.4.2 diff --git a/mpv.net/Misc/Program.cs b/mpv.net/Misc/Program.cs index c56781a..95800b2 100644 --- a/mpv.net/Misc/Program.cs +++ b/mpv.net/Misc/Program.cs @@ -2,7 +2,6 @@ using System.Windows.Forms; using System.Linq; using System.Collections.Generic; -using System.IO; using System.Threading; using System.Diagnostics; @@ -41,7 +40,9 @@ namespace mpvnet foreach (string arg in args) { - if (!arg.StartsWith("--") && (arg == "-" || arg.Contains("://") || arg.Contains(":\\") || arg.StartsWith("\\\\"))) + if (!arg.StartsWith("--") && (arg == "-" || arg.Contains("://") || + arg.Contains(":\\") || arg.StartsWith("\\\\"))) + files.Add(arg); else if (arg == "--queue") files[0] = "queue";