daily pastebin goal
52%
SHARE
TWEET

Untitled

a guest Sep 23rd, 2018 66 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. #!/bin/sh
  2. umask 022
  3. cat /mnt/archive/youtube-dl/youtube-dl_channels | while read line
  4. do
  5.         if [[ $line = "channel"* ]]; then
  6.                 archivedir=$(cut -c34- <<< "$line")
  7.                 channeluid=$(cut -c-32 <<< "$line")
  8.         elif [[ $line = "user"* ]]; then
  9.                 archivedir=$(cut -c6- <<< "$line")
  10.                 channeluid="$line"
  11.         fi
  12.  
  13.         exec &> /var/log/youtube-dl/$archivedir-[$(date +"%m.%d.%Y_%H-%M-%S")].log
  14.         youtube-dl
  15.                 -civw
  16.                 --newline
  17.                 --all-subs
  18.                 --no-mtime
  19.                 --embed-subs
  20.                 --add-metadata
  21.                 --write-thumbnail
  22.                 --prefer-ffmpeg
  23.                 --merge-output-format mkv
  24.                 --download-archive /mnt/archive/youtube-dl/"$archivedir"/"$archivedir"-archive.txt
  25.                 https://www.youtube.com/$channeluid
  26.                 -o "/mnt/archive/youtube-dl/$archivedir/'%(uploader)s'-(%(uploader_id)s)_%(upload_date)s_'%(title)s'_
  27. [%(resolution)s]_[%(id)s].%(ext)s"
  28. done
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top