From bf83deab4b91aef44e271366467a5ab6acb0c9d3 Mon Sep 17 00:00:00 2001 From: Zarg <62082797+Zaarrg@users.noreply.github.com> Date: Sun, 26 Jan 2025 21:03:41 +0100 Subject: [PATCH] easynews addon not working fix --- src/ui/mainwindow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ui/mainwindow.cpp b/src/ui/mainwindow.cpp index 2846441..43b4150 100644 --- a/src/ui/mainwindow.cpp +++ b/src/ui/mainwindow.cpp @@ -133,7 +133,9 @@ void HandleEvent(const std::string &ev, std::vector &args) { if(ev=="mpv-command"){ if(!args.empty() && args[0] == "loadfile" && args.size() > 1) { - args[1] = decodeURIComponent(args[1]); + if (args[1].rfind("http://", 0) != 0 && args[1].rfind("https://", 0) != 0) { + args[1] = decodeURIComponent(args[1]); + } std::vector voArgs = {"vo",g_initialVO}; HandleMpvSetProp(voArgs); std::vector volumeArgs = {"volume", std::to_string(g_currentVolume)};