4 ms·
On Windows where I'm just doing one off downloads, I put this in an "init.cmd" file in the root of my user directory to create a windows version of an alias. In
by Modified3019 3y ago
On Windows where I'm just doing one off downloads, I put this in an "init.cmd" file in the root of my user directory to create a windows version of an alias. Inside it are:
```
@echo off
doskey yt=yt-dlp "-o [%%(uploader)s] [%%(upload_date)s] [%%(id)s] %%(title).150s.%%(ext)s" $*
doskey yt-u=python -m pip install -U yt-dlp
doskey py-u=python.exe -m pip install --upgrade pip
```
Hopefully that saves someone some extra googling.
For more hardcore automated archival, I do this on linux (which doesn't have the character length issues) and I'd recommend looking at the following for inspiration
- https://github.com/TheFrenchGhosty/TheFrenchGhostys-Ultimate-YouTube-DL-Scripts-Collection https://github.com/TheFrenchGhosty/TheFrenchGhostys-Ultimate... (Supports sponsorblock, and it turns out truly finding the best quality is pretty complex)
- https://github.com/dmn001/youtube_channel_archiver https://github.com/dmn001/youtube_channel_archiver (A <config>.conf file is very nice to use.)
- https://github.com/dbeley/youtube-archiver https://github.com/dbeley/youtube-archiver (how to set up a systemd service)