Get video ids from youtube with yt-dlp #8
Loading…
Reference in New Issue
No description provided.
Delete Branch "pta/WeatherNews.jl:yt-dlp"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
For two reasons:
Apparently staff manually copies the video id youtube gives them,
since they sometimes forget to update their json. With this commit,
I'm practically implementing the automation they should have
implemented themselves.
Currently on our site, links aren't available until the moment the
program starts. So in practice, I have to open youtube to copy the
next stream's url for playing in mpv, lest I miss the first several
seconds of the show. (I know staff puts the next stream's link in
chat, but since it's manual, occasionally they forget, and the url is
usually in "/live/" rather than "/watch?v=" format: the latter makes
clearer screenshot filenames, imo.
yt-dlp becomes a required dependency. The same information could be
sourced with Julia code to scrape an invidious instance, but that would
incur more code to produce the same array of per-video dictionaries,
which could be desireable later as exercise in Julia.
Since urls will be known well ahead of time, the redundant calls to wndb-video.jl in crontab might be unnecessary.
This is very cool. I'm OK with having yt-dlp as a dependency. I'll try to get this deployed in a few hours after I do some unrelated errands.
Looks good!