aboutsummaryrefslogtreecommitdiff
path: root/scripts/.local/bin/personal/dlaudio
blob: 3bd414c4853d8013b047eb192f339dcb48e71a47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

# A script to not make me type all that argument **** when I want to download music. 
# Yes I am lazy.

if [[ -n "$1" ]]; then
  yt-dlp "$1" --extract-audio -i -o "%(title)s.%(ext)s" --audio-format mp3 --cookies "~/.config/cookies.txt" &&
  exit 0 ||
  exit 1
else
  printf "[ Error ] Not enough arguments.\n"
  exit 1
fi