Skip to content

Commit

Permalink
shell: replace youtube-dl with yt-dlp
Browse files Browse the repository at this point in the history
  • Loading branch information
aalemayhu committed Nov 3, 2023
1 parent 349fbb9 commit 64bdbe5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shell/funcs
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ gicp() {

# Create mp3 file from youtube video.
_ymp3() {
youtube-dl --extract-audio --audio-format mp3 $1
yt-dlp --extract-audio --audio-format mp3 $1
}

# Only download mp4 files
_onlymp4() {
youtube-dl -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4' $1
yt-dlp -f "bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best" $1
}

# Retrieve new updates to my key.
Expand Down

0 comments on commit 64bdbe5

Please sign in to comment.