Guest User

Untitled

a guest
Sep 23rd, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  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
Add Comment
Please, Sign In to add comment