aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2023-07-08 11:41:56 +0200
committerdec05eba <dec05eba@protonmail.com>2023-07-08 11:41:56 +0200
commitf0693a48f176c01dd7b22ca4aa2aca0299146b30 (patch)
tree67d2af68a63a3c0b822bbdd0ded4caad3cb8d947
parent962d4aef43a8b2db1531b4a687766783f88e84ed (diff)
Youtube: fix livestream not working (filtered out by yt-dlp)
-rw-r--r--TODO9
-rw-r--r--example-config.json2
-rw-r--r--src/VideoPlayer.cpp7
3 files changed, 14 insertions, 4 deletions
diff --git a/TODO b/TODO
index 0bc4a58..20471ee 100644
--- a/TODO
+++ b/TODO
@@ -276,6 +276,13 @@ Run ~/.config/quickmedia/script.sh or something like that for every body item an
This is similar to muting/ignore in matrix so maybe implement that at the same time? or was ignore server side, I forgot.
To make this work properly the script needs to be sent more information than the body item text only. It also needs plugin name,
current tab (url, name), body item url, etc.
+ Also do this when item is selected or a hotkey is used.
+Hotkeys should be in a config file that maps it to an action (a name). This would also allow the user to overwrite hotkeys or add
+ more hotkeys.
Ctrl+H to show/hide dot files in file manager.
Dramacool search pagination. Search for "samurai" for example and see that the results are limited.
-Fix flickering on resize by creating a child window and draw on that. See: https://bugs.chromium.org/p/chromium/issues/detail?id=326995 \ No newline at end of file
+Fix flickering on resize by creating a child window and draw on that. See: https://bugs.chromium.org/p/chromium/issues/detail?id=326995
+Add option to get notified on any matrix event type (maybe have a config list with events that we are interested in).
+ This could be used to get notified when somebody calls us (m.call.invite) with quickmedia doesn't implement, but
+ we could know when somebody calls us.
+ Also mark such room the same way as a mention - it should be put at the top of the room list. \ No newline at end of file
diff --git a/example-config.json b/example-config.json
index 1ab1718..ece1aa8 100644
--- a/example-config.json
+++ b/example-config.json
@@ -119,7 +119,7 @@
// Use system (~/.config/mpv) mpv.conf instead of the one provided by QuickMedia
"use_system_mpv_config": false,
// Enable shaders. Only set to false if you have a very slow computer or dont care about graphical effects
- // such as rounded corners. Rounded corners can also be disabled with the theme "rounded_rectangles" option
+ // such as rounded corners. Rounded corners can also be disabled with the theme option "rounded_rectangles"
"enable_shaders": true,
// The theme to use. This should match the name of a file in either /usr/share/quickmedia/themes or ~/.config/quickmedia/themes, except without the .json at the end of the filename
"theme": "default",
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");