Before this I thought mpv used a real template literals, the syntax of property-expansion is more complicated.
And more importantly, security is difficult to guarantee.
Document this.
Can make property be the value of another.
set target-trc ${video-params/gamma}
Ternary operators can be used. Can't.
set target-trc ${?video-params/gamma==pq:hlg}${!video-params/gamma==pq:bt.1886}
Need to prevent injection.
filename="example; set unsafe true; play another.mp4"
set title ${title}
set title example; set unsafe true; play another.mp4
Before this I thought mpv used a real template literals, the syntax of property-expansion is more complicated. And more importantly, security is difficult to guarantee.
Document this.
Can make property be the value of another.
set target-trc ${video-params/gamma}
Ternary operators can be used.Can't.set target-trc ${?video-params/gamma==pq:hlg}${!video-params/gamma==pq:bt.1886}
Need to prevent injection.
filename="example; set unsafe true; play another.mp4"
set title ${title}
set title example; set unsafe true; play another.mp4