diff options
author | Guido Cella <guido@guidocella.xyz> | 2023-05-20 14:56:31 +0200 |
---|---|---|
committer | Leo Izen <leo.izen@gmail.com> | 2023-06-07 19:04:21 -0400 |
commit | 1fbaf4602e909ac037d69e5d01672ffcabea63fb (patch) | |
tree | e8620b5178b83b37863f377da4207b5df9425ff5 /DOCS | |
parent | 46ee31b655b4d48097e440d67ed9b06b9a036caa (diff) | |
download | mpv-1fbaf4602e909ac037d69e5d01672ffcabea63fb.tar.bz2 mpv-1fbaf4602e909ac037d69e5d01672ffcabea63fb.tar.xz |
DOCS/mpv: add an example for applying profiles to certain paths
It is worth adding this example because it has been asked multiple times
in the issue tracker and the IRC channel.
string.find() is used because it's 20 times faster than string.match().
Diffstat (limited to 'DOCS')
-rw-r--r-- | DOCS/man/mpv.rst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/DOCS/man/mpv.rst b/DOCS/man/mpv.rst index a468fabba3..fc7122cb5b 100644 --- a/DOCS/man/mpv.rst +++ b/DOCS/man/mpv.rst @@ -844,6 +844,14 @@ and unintuitive behavior. profile-cond=width >= 1280 hue=-50 + Make only videos containing "youtube" or "youtu.be" in their path brighter: + + :: + + [youtube] + profile-cond=path:find('youtu%.?be') + gamma=20 + If you want the profile to be reverted if the condition goes to false again, you can set ``profile-restore``: |