I use a Firefox browser extension to open all kinds of videos directly in mpv rather than in the browser itself. For this I configured the extension to open mpv with the "--yt-dl-format" switch to configure what resolution I want (it basically calls mpv via the command line). It would be lovely to be able to do the same in Haruna. It's already possible to do e.g. "haruna <youtube url>", but the `--yt-dl-format` switch is currently not recognized, and you have to configure what quality you want via the application-wide settings rather than for this particular instance.
Settings > Playback
I realize I can do that, and I already mentioned that. > and you have to configure what quality you want via the application-wide settings rather than for this particular instance. However, that'll change it _for always_ rather than just for this particular time I launch Haruna. Basically I want this command line switch to be an override which gets wiped after I quit the application.
Git commit cbfe262c945df5714f13569472029c500a5b6bc0 by George Florea Bănuș. Committed on 27/10/2022 at 22:46. Pushed by georgefb into branch 'master'. add command line option to override the ytdl format selection setting this option is in turn overwritten if the GUI setting is changed M +16 -7 src/application.cpp M +1 -0 src/application.h M +10 -0 src/global.cpp M +6 -0 src/global.h M +8 -1 src/mpv/mpvitem.cpp https://invent.kde.org/multimedia/haruna/commit/cbfe262c945df5714f13569472029c500a5b6bc0
You can now do ``` haruna --ytdl-format-selection="bestvideo[height<=160]+bestaudio/best" "https://www.youtube.com/watch?v=3pDpYur3Nwc" ``` or use the shorter version `--ytdlfs`.