This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

tools.mpv: add video/audio quality keys for youtube

+5 -3
+5 -3
tools/mpv/flake-module.nix
··· 9 9 : script-binding console/enable 10 10 x add audio-delay -0.050 11 11 X add audio-delay 0.050 12 + F script-binding quality_menu/video_formats_toggle 13 + Alt+f script-binding quality_menu/audio_formats_toggle 12 14 ''; 13 15 14 16 mpvConfig = pkgs.writeText "mpv.conf" '' ··· 29 31 function download() 30 32 log('Searching subtitles ...', 10) 31 33 path = mp.get_property('path') 32 - 34 + 33 35 -- Build dl_subs lazily when needed 34 36 log('Building subtitle downloader...', 5) 35 37 result = utils.subprocess({ args = {"nix", "build", "--no-link", "--print-out-paths", "${self}#mpv-dl-subs"} }) ··· 37 39 log('Failed to build subtitle downloader') 38 40 return 39 41 end 40 - 42 + 41 43 dl_subs_path = string.gsub(result.stdout, "\n", "") .. "/bin/dl_subs" 42 - 44 + 43 45 -- Download subtitles 44 46 result = utils.subprocess({ args = {dl_subs_path, path} }) 45 47 if result.error == nil then