aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-03-28 21:21:26 +0200
committerdec05eba <dec05eba@protonmail.com>2021-03-28 21:21:26 +0200
commit016f115baf7fe8c080202e7969e5740a98cdc76e (patch)
tree0579e5425898b4c969cd7c4096ecd9bec52e3eba /src
parent7bd1092f7e472afb0568205cf402c7a739d69ff0 (diff)
Fix some spotify podcast failing to play (because of some characters in title?)
Diffstat (limited to 'src')
-rw-r--r--src/VideoPlayer.cpp9
1 files changed, 1 insertions, 8 deletions
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",*/