Skip to content

Instantly share code, notes, and snippets.

@bafflingscience
Last active April 7, 2020 20:07
Show Gist options
  • Select an option

  • Save bafflingscience/c6c2a1e3b29da5ec1b073e98dfd3a716 to your computer and use it in GitHub Desktop.

Select an option

Save bafflingscience/c6c2a1e3b29da5ec1b073e98dfd3a716 to your computer and use it in GitHub Desktop.

Revisions

  1. bafflingscience revised this gist Apr 7, 2020. 1 changed file with 17 additions and 3 deletions.
    20 changes: 17 additions & 3 deletions ytpl
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,19 @@
    #! /bin/bash
    ytdl() {
    /usr/local/bin/youtube-dl -i -o "~/Videos/YouTube/%(playlist)s/%(playlist_index)s-%(title)s.%(ext)s" --yes-playlist --playlist-start 1 -f "mp4" $1
    ytdl() {
    /usr/local/bin/youtube-dl \
    --verbose \
    --playlist-start 1 \
    --download-archive /Users/user/Archive/playlist_archive.txt \
    --add-metadata \
    --embed-thumbnail \
    --write-description \
    --xattrs \
    --cookies /Users/user/Archive/cookies.txt \
    -i \
    -o "/Volumes/fourtb/Video/Playlists/%(playlist_title)s/%(playlist_index)s - %(title)s.%(ext)s" \
    -f "mp4" \
    $1
    }
    ytdl $1
    ytdl $1

    echo "Great job Dave!"
  2. bafflingscience revised this gist Mar 9, 2020. No changes.
  3. bafflingscience revised this gist Mar 9, 2020. 2 changed files with 5 additions and 6 deletions.
    5 changes: 5 additions & 0 deletions ytpl
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    #! /bin/bash
    ytdl() {
    /usr/local/bin/youtube-dl -i -o "~/Videos/YouTube/%(playlist)s/%(playlist_index)s-%(title)s.%(ext)s" --yes-playlist --playlist-start 1 -f "mp4" $1
    }
    ytdl $1
    6 changes: 0 additions & 6 deletions ytpl.sh
    Original file line number Diff line number Diff line change
    @@ -1,6 +0,0 @@
    #! /bin/bash
    ytdl() {
    cd /Volumes/path/to/save/playlist;
    /usr/local/bin/youtube-dl -i -o "%(playlist_index)s-%(title)s.%(ext)s" --yes-playlist --playlist-start 1 -f "mp4" $1
    }
    ytdl $1
  4. bafflingscience revised this gist Mar 7, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion ytpl.sh
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    #! /bin/bash
    ytdl() {
    cd /Volumes/fourtb/Video/YouTube;
    cd /Volumes/path/to/save/playlist;
    /usr/local/bin/youtube-dl -i -o "%(playlist_index)s-%(title)s.%(ext)s" --yes-playlist --playlist-start 1 -f "mp4" $1
    }
    ytdl $1
  5. bafflingscience created this gist Mar 7, 2020.
    6 changes: 6 additions & 0 deletions ytpl.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    #! /bin/bash
    ytdl() {
    cd /Volumes/fourtb/Video/YouTube;
    /usr/local/bin/youtube-dl -i -o "%(playlist_index)s-%(title)s.%(ext)s" --yes-playlist --playlist-start 1 -f "mp4" $1
    }
    ytdl $1