3 ms·
Just for posterity and fun, I'll post this quick and hacky lua script I wrote to do the job for me some time ago. https://gist.github.com/folknor/4d7da1168497e
by folknor 8y ago
Just for posterity and fun, I'll post this quick and hacky lua script I wrote to do the job for me some time ago.
https://gist.github.com/folknor/4d7da1168497eae5eaf404f20c980716 https://gist.github.com/folknor/4d7da1168497eae5eaf404f20c98...
It requires a few lua modules and CLI tools, for example https://github.com/sharkdp/fd https://github.com/sharkdp/fd - like all the lua scripts I write for my own use.
Also, now that I was going to post it, I went through my system log and noticed it actually has problems if the youtube ID includes a dash (-), because I didn't escape the ID in the ytdl() call at the bottom. I'll leave that as an exercise for the reader.
And, of course, I removed the controversial feeds in the list before posting.
Anyway, it works fine for me - hopefully it can inspire others :-)