yd: Use yt-dlp instead of youtube-dl
[sunny256-utils.git] / yd
blob3683226cc8328a601e6f58b3b7210464b55d4a40
1 #!/usr/bin/env bash
3 #=======================================================================
4 # yd
5 # File ID: d01bb3d8-c764-11e1-8e09-00c0a8deee11
6 #=======================================================================
8 test -z "$YDTITLE" && YDTITLE="%(title)s"
10 yt-dlp -4 -o "$YDTITLE-%(id)s.%(ext)s" \
11 --ignore-errors --no-overwrites \
12 --write-description --write-info-json \
13 --write-sub --write-thumbnail --sub-lang en,en-US,no,nb \
14 "$@"