From 4cb842a3f1ecc50c9631a16c8fe5a44e5b5ce09d Mon Sep 17 00:00:00 2001 From: Leonetienne Date: Sat, 26 Feb 2022 15:41:23 +0100 Subject: [PATCH] Added utilities to readme, and an example for once.yaml --- .gitignore | 3 ++- README.md | 12 ++++++++++++ once-example.yaml | 10 ++++++++++ 3 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 once-example.yaml diff --git a/.gitignore b/.gitignore index 4957db8..3c3c1d8 100644 --- a/.gitignore +++ b/.gitignore @@ -8,5 +8,6 @@ # Explicitly allow encrypted versions of my lists !/*.crypt -# Explicitly allow the example linklist file +# Explicitly allow example files !/linklist-example.yaml +!/once-example.yaml diff --git a/README.md b/README.md index 2b044c7..adf7ea9 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,18 @@ Files will be saved to `./videos//` and `./music//`. 3) Make sure you have Python3 and [yt-dlp](https://github.com/yt-dlp/yt-dlp) installed. 4) Done. +## Other noteworthy utilities +### Download once +You can create a `once.yaml` [(See example)](https://github.com/Leonetienne/Youtube-Archiver/blob/master/once-example.yaml), which is of the same structure as all the other linklists (except it needs a `type`=[`video`/`music`]), and `folder-name` is a required attribute. +You can download this linklist with `python3 download-once.py`. +What's the purpose of this? If you find a nice playlist, which won't ever update, why would you want to fetch it every time running the cronjob? +Just adding it to a download list and running the cronjob is shit aswell, because fetching all the other items still takes time. +This allows you to bypass ALL your other lists, to quickly and cleanly download a playlist (or multiple) **once**. + +### sync-to-nas.bat +Since i use WSL, and like to store my archives on my nas, i made a quick script to move downloads from my local instance to my nas. +Without saying, you would have to adjust your nas drive-letter and target paths... + # LICENSE ``` BSD 2-Clause License diff --git a/once-example.yaml b/once-example.yaml new file mode 100644 index 0000000..31fcac6 --- /dev/null +++ b/once-example.yaml @@ -0,0 +1,10 @@ +# What's the purpose of this? If you find a nice playlist, which won't ever update, why would you want to fetch it every time running the cronjob? +# Just adding it to a download list and running the cronjob is shit aswell, because fetching all the other items still takes time. +# This allows you to bypass ALL your other lists, to quickly and cleanly download a playlist (or multiple) **once**. +# This filename should be "once.yaml". + +# All three attributes are REQUIRED! +- + url: https://www.youtube.com/watch?v=zV-Xcy_bF2w&list=PL75C4B43E5F60A82C + folder-name: Snoog Dogg + type: music # This has to be either music or video