aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/VideoPlayer.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/VideoPlayer.cpp b/src/VideoPlayer.cpp
index e13f55f..5cf10b3 100644
--- a/src/VideoPlayer.cpp
+++ b/src/VideoPlayer.cpp
@@ -225,9 +225,12 @@ namespace QuickMedia {
std::string ytdl_format;
if(startup_args.no_video)
- ytdl_format = "--ytdl-format=(bestaudio/best)[protocol=https]";
+ ytdl_format = "(bestaudio/best)";
else
- ytdl_format = "--ytdl-format=(bestvideo[ext=mp4][height<=?" + std::to_string(startup_args.monitor_height) + "]+bestaudio/best)[protocol=https]";
+ ytdl_format = "(bestvideo[ext=mp4][height<=?" + std::to_string(startup_args.monitor_height) + "]+bestaudio/best)";
+
+ ytdl_format += "[protocol^=http]/" + ytdl_format + "[protocol^=m3u8]";
+ ytdl_format = "--ytdl-format=" + ytdl_format;
if(startup_args.use_youtube_dl) {
args.push_back("--ytdl=yes");