Added utilities to readme, and an example for once.yaml

This commit is contained in:
Leonetienne 2022-02-26 15:41:23 +01:00
parent daa002e8e8
commit 4cb842a3f1
3 changed files with 24 additions and 1 deletions

3
.gitignore vendored
View File

@ -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

View File

@ -44,6 +44,18 @@ Files will be saved to `./videos/<folder>/` and `./music/<folder>/`.
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

10
once-example.yaml Normal file
View File

@ -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