aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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(),