Skip to content

Commit a31f907

Browse files
authored
Add ytdl script from MotH
1 parent 84ce074 commit a31f907

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Diff for: all-distros/ytdl

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
# Download the video
4+
yt-dlp -f ba -x -o "%(title)s.%(ext)s" --restrict-filenames "$1"
5+
6+
# Convert the filename to lowercase
7+
for file in *.opus; do
8+
mv "$file" "$(echo "$file" | tr '[:upper:]' '[:lower:]')"
9+
done

0 commit comments

Comments
 (0)