Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- umask 022
- cat /mnt/archive/youtube-dl/youtube-dl_channels | while read line
- do
- if [[ $line = "channel"* ]]; then
- archivedir=$(cut -c34- <<< "$line")
- channeluid=$(cut -c-32 <<< "$line")
- elif [[ $line = "user"* ]]; then
- archivedir=$(cut -c6- <<< "$line")
- channeluid="$line"
- fi
- exec &> /var/log/youtube-dl/$archivedir-[$(date +"%m.%d.%Y_%H-%M-%S")].log
- youtube-dl
- -civw
- --newline
- --all-subs
- --no-mtime
- --embed-subs
- --add-metadata
- --write-thumbnail
- --prefer-ffmpeg
- --merge-output-format mkv
- --download-archive /mnt/archive/youtube-dl/"$archivedir"/"$archivedir"-archive.txt
- https://www.youtube.com/$channeluid
- -o "/mnt/archive/youtube-dl/$archivedir/'%(uploader)s'-(%(uploader_id)s)_%(upload_date)s_'%(title)s'_
- [%(resolution)s]_[%(id)s].%(ext)s"
- done
Add Comment
Please, Sign In to add comment