Commit Graph

3 Commits

Author SHA1 Message Date
MasterofJOKers c2f5732351 mirror-yt: Handle returncode 1
We switch from `subprocess.run` to manually handling a `Popen` object so
we can decide whether a returncode of 1 is fine or now depending on the
output we see. Since we want live output during the download, we cannot
just capture all the output. Instead, we have to regularly print
whatever we captured. Therefore, we need a `Popen` object and need to
call `communicate()` with a timeout on it.
2024-04-21 23:18:54 +02:00
MasterofJOKers 16de972f7b mirror-yt: Add a sleep between downloads
We want to play nice in the internet.
2024-04-21 23:18:19 +02:00
MasterofJOKers 171163b3d9 Add mirror-yt.py - a wrapper around yt-dlp
This script is supposed to run regularly to mirror videos of certain
YouTube channels locally for archiving purposes.
2024-03-08 16:21:32 +01:00