Commit Graph

5 Commits

Author SHA1 Message Date
MasterofJOKers 0ba42bb039 mirror-yt: Support setting sleep intervals
If the user wants to download videos a little faster than default, they
should be able to influence the between-downloads sleep interval.
2025-09-30 18:52:47 +02:00
MasterofJOKers e7583336b2 mirror-yt: Support limiting video height
Users might want to download not the biggest version of a video, so we
support passing a video height limit into yt-dlp.
2025-09-30 18:47:20 +02:00
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