diff options
author | dec05eba <dec05eba@protonmail.com> | 2023-07-08 11:41:56 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2023-07-08 11:41:56 +0200 |
commit | f0693a48f176c01dd7b22ca4aa2aca0299146b30 (patch) | |
tree | 67d2af68a63a3c0b822bbdd0ded4caad3cb8d947 /src | |
parent | 962d4aef43a8b2db1531b4a687766783f88e84ed (diff) |
Youtube: fix livestream not working (filtered out by yt-dlp)
Diffstat (limited to 'src')
-rw-r--r-- | src/VideoPlayer.cpp | 7 |
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"); |