From 412340645c759e6da16e9185da34a4218ab64507 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 30 Apr 2023 20:51:38 +0200 Subject: Use ytdl format --- src/VideoPlayer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/VideoPlayer.cpp b/src/VideoPlayer.cpp index 94ba7d5..9d857ca 100644 --- a/src/VideoPlayer.cpp +++ b/src/VideoPlayer.cpp @@ -230,6 +230,8 @@ namespace QuickMedia { ytdl_format = "--ytdl-format=bestvideo[ext=mp4][height<=?" + std::to_string(startup_args.monitor_height) + "]+bestaudio/best"; args.push_back("--ytdl=no"); + if(startup_args.use_youtube_dl) + args.push_back(ytdl_format.c_str()); // TODO: Properly escape referer quotes std::string referer_arg = "--http-header-fields=Referer: " + startup_args.referer; -- cgit v1.2.3