From 06e5341db42c60be8bfce40540c81b0f2bd459b7 Mon Sep 17 00:00:00 2001 From: TheFrenchGhosty Date: Thu, 21 Nov 2019 23:45:24 +0100 Subject: [PATCH] Add Watch Scripts, made for videos that are deleted when watched --- Linux - OSX/Watch Script/Source - Watch.txt | 0 Linux - OSX/Watch Script/Watch.sh | 9 +++++++++ README.md | 7 ++++--- Windows/Watch Script/Source - Watch.txt | 0 Windows/Watch Script/Watch.bat | 9 +++++++++ 5 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 Linux - OSX/Watch Script/Source - Watch.txt create mode 100755 Linux - OSX/Watch Script/Watch.sh create mode 100644 Windows/Watch Script/Source - Watch.txt create mode 100755 Windows/Watch Script/Watch.bat diff --git a/Linux - OSX/Watch Script/Source - Watch.txt b/Linux - OSX/Watch Script/Source - Watch.txt new file mode 100644 index 0000000..e69de29 diff --git a/Linux - OSX/Watch Script/Watch.sh b/Linux - OSX/Watch Script/Watch.sh new file mode 100755 index 0000000..a2fd9d9 --- /dev/null +++ b/Linux - OSX/Watch Script/Watch.sh @@ -0,0 +1,9 @@ +#!/bin/sh +# +# TheFrenchGhostys YouTube-DL Archivist Scripts: The ultimate collection of scripts for YouTube-DL +# https://gitlab.com/TheFrenchGhosty/TheFrenchGhostys-YouTube-DL-Archivist-Scripts +# https://gitlab.com/TheFrenchGhosty +# +# + +youtube-dl --format "(bestvideo[vcodec^=av01][height>=1080][fps>30]/bestvideo[vcodec=vp9.2][height>=1080][fps>30]/bestvideo[vcodec=vp9][height>=1080][fps>30]/bestvideo[vcodec^=av01][height>=1080]/bestvideo[vcodec=vp9.2][height>=1080]/bestvideo[vcodec=vp9][height>=1080]/bestvideo[height>=1080]/bestvideo[vcodec^=av01][height>=720][fps>30]/bestvideo[vcodec=vp9.2][height>=720][fps>30]/bestvideo[vcodec=vp9][height>=720][fps>30]/bestvideo[vcodec^=av01][height>=720]/bestvideo[vcodec=vp9.2][height>=720]/bestvideo[vcodec=vp9][height>=720]/bestvideo[height>=720]/bestvideo)+(bestaudio[acodec=opus]/bestaudio)/best" --verbose --force-ipv4 --ignore-errors --no-continue --no-overwrites --download-archive archive.log --add-metadata --embed-thumbnail --all-subs --sub-format "srt" --embed-subs --output "%(uploader)s - %(title)s - %(upload_date)s.%(ext)s" --merge-output-format "mkv" --batch-file "Source - Watch.txt" diff --git a/README.md b/README.md index b4bd309..0b89ede 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ Add content to a 'Source - XXXXXX.txt' file depending of what type of content yo Done -## Archive and Active Scripts? +## Archive, Active Scripts? Downloading and archiving "live" content is complicated, especially because gigabytes of it will be created each day. @@ -37,14 +37,15 @@ These dates will need to be incremented every year January 1 and the content cre ## Channels, Playlists and Unique Scripts? -Three different type of scripts are included depending of what you want to download, the only thing changing is the naming scheme +Four different type of scripts are included depending of what you want to download, the only thing changing is the naming scheme `Channels.sh` : Made to download everything made by a creator (naming scheme: `Uploader/Uploader - 20191231 - Title/Uploader - 20191231 - Title.ext`) `Playlists.sh` : Made to download playlists made by a creator (naming scheme: `PlaylistName - Uploader/20191231 - Title/20191231 - Title.ext`) -`Unique.sh` : Made to download individual videos made by a creator (naming scheme: `Title - Uploader - 20191231/Title - Uploader - 20191231.ext`) +`Unique.sh` : Made to download individual videos made by a creator (naming scheme: `Uploader - Title - 20191231.ext`) +`Watch.sh` : Made to download individual videos made by a creator that are not meant to be archived but deleted after being watched (naming scheme: `Title - Uploader - 20191231/Title - Uploader - 20191231.ext`) # Details : diff --git a/Windows/Watch Script/Source - Watch.txt b/Windows/Watch Script/Source - Watch.txt new file mode 100644 index 0000000..e69de29 diff --git a/Windows/Watch Script/Watch.bat b/Windows/Watch Script/Watch.bat new file mode 100755 index 0000000..9021f9d --- /dev/null +++ b/Windows/Watch Script/Watch.bat @@ -0,0 +1,9 @@ +:: +:: +:: TheFrenchGhostys YouTube-DL Archivist Scripts: The ultimate collection of scripts for YouTube-DL +:: https://gitlab.com/TheFrenchGhosty/TheFrenchGhostys-YouTube-DL-Archivist-Scripts +:: https://gitlab.com/TheFrenchGhosty +:: +:: + +youtube-dl --format "(bestvideo[vcodec^=av01][height>=1080][fps>30]/bestvideo[vcodec=vp9.2][height>=1080][fps>30]/bestvideo[vcodec=vp9][height>=1080][fps>30]/bestvideo[vcodec^=av01][height>=1080]/bestvideo[vcodec=vp9.2][height>=1080]/bestvideo[vcodec=vp9][height>=1080]/bestvideo[height>=1080]/bestvideo[vcodec^=av01][height>=720][fps>30]/bestvideo[vcodec=vp9.2][height>=720][fps>30]/bestvideo[vcodec=vp9][height>=720][fps>30]/bestvideo[vcodec^=av01][height>=720]/bestvideo[vcodec=vp9.2][height>=720]/bestvideo[vcodec=vp9][height>=720]/bestvideo[height>=720]/bestvideo)+(bestaudio[acodec=opus]/bestaudio)/best" --verbose --force-ipv4 --ignore-errors --no-continue --no-overwrites --download-archive archive.log --add-metadata --embed-thumbnail --all-subs --sub-format "srt" --embed-subs --output "%%(uploader)s - %%(title)s - %%(upload_date)s.%(ext)s" --merge-output-format "mkv" --batch-file "Source - Watch.txt"