We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09cbb32 commit 2833486Copy full SHA for 2833486
.gitignore
@@ -1,3 +1,4 @@
1
.DS_Store
2
.metals
3
-.vscode
+.vscode
4
+videos
download-videos.sh
@@ -0,0 +1,19 @@
+
+#!/bin/bash
+for row in $(cat .problemSiteData.json | jq -r '.[] | @base64')
5
+do
6
+ _jq() {
7
+ echo ${row} | base64 --decode | jq -r ${1}
8
+ }
9
+ link="https://www.youtube.com/watch?v=$(_jq '.video')"
10
+ output="videos/$(_jq '.code')-$(_jq '.video')"
11
+ if [ -f $output.webm ] || [ -f $output.mkv ]
12
+ then
13
+ echo "skipping $output"
14
+ else
15
+ echo "downloading $link to $output"
16
+ yt-dlp "$link" -o $output
17
+ fi
18
+done
19
0 commit comments