mirror of
https://github.com/mpv-player/mpv
synced 2025-01-02 21:12:23 +00:00
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().
This commit is contained in:
parent
46ee31b655
commit
1fbaf4602e
@ -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``:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user