I thought i'd start a topic about what I'm up to because other people might be interested, might have suggestions or perhaps have already done this..!
I have my raspberry pi powered from the USB port of my Apple TimeCapsule (router/backup) and it also gets its internet connection from the LAN of the TimeCapsule. So that's all very handy!
So my project is about creating a local cache of Youtube videos so they're ready for me to watch instantly. My internet isn't all that fast (third world country) so streaming can be a bit of a pain and requires a lot of patience. So the idea is that the raspberry pi automatically downloads videos from youtube for me and then gives me a nice interface to watch them over my local network.
Here's what I've got so far:
For downloading youtube videos, i'm using youtube-dl
I started work on my own script which would manage the queue of videos with youtube-dl but then came across this script which already does it. I created a cron script to run this hourly (but to ensure it wont run if its still running from the previous hour)
So using the two things above, I can have videos automatically downloaded based on my youtube account subscription. It runs hourly looking for new videos.
With nginx and php-fpm installed, I'm coding up a basic frontend that lists the videos and then embeds a HTML5 video player to watch them in the browser.
Any feedback, suggestions or ideas would be appreciated
tldr; My raspberrypi will automatically download any new videos from people I'm subscribed to on youtube and keep a local copy so I can watch them instantly over my local network at any time.