From 016f115baf7fe8c080202e7969e5740a98cdc76e Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 28 Mar 2021 21:21:26 +0200 Subject: Fix some spotify podcast failing to play (because of some characters in title?) --- src/VideoPlayer.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src') diff --git a/src/VideoPlayer.cpp b/src/VideoPlayer.cpp index 679f5bf..adda2bf 100644 --- a/src/VideoPlayer.cpp +++ b/src/VideoPlayer.cpp @@ -64,7 +64,7 @@ namespace QuickMedia { XCloseDisplay(display); } - VideoPlayer::Error VideoPlayer::launch_video_process(const char *path, sf::WindowHandle _parent_window, const std::string&, const std::string &title) { + VideoPlayer::Error VideoPlayer::launch_video_process(const char *path, sf::WindowHandle _parent_window, const std::string&, const std::string&) { parent_window = _parent_window; if(!tmpnam(ipc_server_path)) { @@ -97,10 +97,6 @@ namespace QuickMedia { else ytdl_format = "--ytdl-format=bestvideo[height<=?" + std::to_string(monitor_height) + "]+bestaudio/best"; - std::string script_opts; - if(!title.empty()) - script_opts = "--script-opts='osc-title=" + title + "'"; - // TODO: Resume playback if the last video played matches the first video played next time QuickMedia is launched args.insert(args.end(), { "mpv", @@ -126,9 +122,6 @@ namespace QuickMedia { if(!resume_playback) args.push_back("--no-resume-playback"); - if(!script_opts.empty()) - args.push_back(script_opts.c_str()); - if(!use_system_mpv_config) { args.insert(args.end(), { "--no-config", /*"--demuxer-max-bytes=40M", "--demuxer-max-back-bytes=20M",*/ -- cgit v1.2.3