From 47ced886fbd41a35d275526e18164aaa71202bef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sat, 24 Oct 2020 19:57:00 +0200 Subject: release 2.0 --- watch.cmd | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 watch.cmd (limited to 'watch.cmd') diff --git a/watch.cmd b/watch.cmd deleted file mode 100644 index 1c7ea1b..0000000 --- a/watch.cmd +++ /dev/null @@ -1,18 +0,0 @@ -@echo off -set url=%* -set url=%url:watch:=% - -youtube-dl -j %url% > %TEMP%\youtubejson - -type %TEMP%\youtubejson ^ - | jq ".formats[] | select(.ext == """mp4""") | {width, url}"^ - | jq -sr "sort_by(.width) | .[-1].url"^ - > %TEMP%\youtubevideo - -type %TEMP%\youtubejson^ - | jq ".formats[] | select(.ext == """m4a""") | {url}" | jq -sr ".[-1].url"^ - > %TEMP%\youtubeaudio - -for /f %%v in (%TEMP%\youtubevideo) ^ -do for /f %%a in (%TEMP%\youtubeaudio) ^ -do start "" "%ProgramFiles%\MPC-HC\mpc-hc" "%%v" /dub "%%a" \ No newline at end of file -- cgit v1.2.3