aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2023-04-30 20:48:10 +0200
committerdec05eba <dec05eba@protonmail.com>2023-04-30 20:48:10 +0200
commitd7ffe75e9d5a09e21109327133b9b3b25ffbd9a1 (patch)
treece9a9981e290535f5e42ce1f9048aa40ad955b73 /src
parentb11ae7add71f92d540fffec9ef97bc224ef01825 (diff)
Matrix: fix youtube videos not working if use_system_mpv_config is set
Diffstat (limited to 'src')
-rw-r--r--src/QuickMedia.cpp2
-rw-r--r--src/VideoPlayer.cpp4
2 files changed, 2 insertions, 4 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp
index b1bbcde..6c38a8d 100644
--- a/src/QuickMedia.cpp
+++ b/src/QuickMedia.cpp
@@ -3458,7 +3458,7 @@ namespace QuickMedia {
startup_args.resume = false;
startup_args.resource_root = resources_root;
startup_args.monitor_height = video_max_height;
- startup_args.use_youtube_dl = use_youtube_dl && !video_page->is_local();
+ startup_args.use_youtube_dl = (use_youtube_dl || is_youtube_rel) && !video_page->is_local();
startup_args.title = video_title;
startup_args.start_time = start_time;
startup_args.chapters = std::move(video_info.chapters);
diff --git a/src/VideoPlayer.cpp b/src/VideoPlayer.cpp
index 6a34f29..94ba7d5 100644
--- a/src/VideoPlayer.cpp
+++ b/src/VideoPlayer.cpp
@@ -246,9 +246,7 @@ namespace QuickMedia {
args.push_back("--load-scripts=yes");
args.push_back("--osc=yes");
args.push_back(input_conf_file.c_str());
-
- if(startup_args.use_youtube_dl)
- args.push_back(ytdl_hook_file.c_str());
+ args.push_back(ytdl_hook_file.c_str());
} else {
args.insert(args.end(), {
config_dir.c_str(),