Re:Show HN: Tube – Minimalist YouTube
by rcthompson on Saturday April 14, 2018 @03:24AM
(#16836313)
I don't think there's any way to know what qualities are currently being prepared. Your best bet might be to just figure out what time that creator typically uploads, and make sure your script doesn't run during that time and for several hours afterward, to give YouTube the time it needs to prepare the high-quality ones.
Re:Show HN: Tube – Minimalist YouTube
by wingerlang on Saturday April 14, 2018 @05:59AM
(#16836680)
Could you look at the upload date and wait a certain amount until the processing is more likely to be done?
Re:Show HN: Tube – Minimalist YouTube
by rcthompson on Saturday April 14, 2018 @09:48AM
(#16837296)
That's an excellent idea. You can work out a reasonable amount of time to allow YouTube to do the video processing, and then use youtube-dl's "--datebefore" option to only download videos that are at least that old. You'll have to manually compute the date and time for X hours in the past, I suppose.
Thanks for the hint wrt --datebefore. I'll give it a go :)
Ah! That could work indeed. Thanks :)
I do similar with cron but often get videos as they're still processing (and thus only at lower qualities). One issue is the channels I 'subscribe' to don't always output at the same resolution and frame rate.. so I can't do a simple 'is video 4k60' test.