diff options
author | dec05eba <dec05eba@protonmail.com> | 2023-04-30 20:51:38 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2023-04-30 20:51:38 +0200 |
commit | 412340645c759e6da16e9185da34a4218ab64507 (patch) | |
tree | 5196d4a36c9624cfc2f70be246b0b42bff9f702e /src | |
parent | d7ffe75e9d5a09e21109327133b9b3b25ffbd9a1 (diff) |
Use ytdl format
Diffstat (limited to 'src')
-rw-r--r-- | src/VideoPlayer.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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; |