http://kseti77xagomoqfzqnphxwhjjlfs2exj6b2fmr3sh6pk23tkcz5dseid.onion/git/mpv-scripts.git/commit/scripts/uosc/lib/menus.lua
'p', value = format, active = format == ytdl_format} + end + + menu = Menu:open({type = 'stream-quality', title = t('Stream quality'), items = items}, function(event) + if event.type == 'activate' then + mp.set_property('ytdl-format', event.value) + + -- Reload the video to apply new format + -- This is taken from https://github.com/jgreco/mpv-youtube-quality + -- which is in turn taken from https://github.com/4e6/mpv-reload/ + local duration = mp.get_property_native('duration') + local...