

download-archive /var/services/homes/admin/Media/YouTube/downloaded.txt \

My script is a variation on the one from DIY Futurism: #!/bin/sh The key is to take advantage of all of the great features in youtube-dl, including the ability to provide a "batch" file containing target channels, the ability to embed metadata and download thumbnails, and an "archive" feature which tracks what has already been downloaded.

I already have Python installed there, so it was as simple as running pip install youtube-dl.Īt this point, I was ready to create a script that would download the content and add it to Plex. Created a "TV Shows" library in Plex that uses the scanner and agent.Installed the aforementioned personal media scanner and personal media agent in my Plex server and enabled them in my Plex server settings.I run my Plex Media Server on my Synology DS1019+ NAS, which I absolutely adore, so that's where I set everything up. My approach is similar, and makes use of the excellent youtube-dl project, along with a personal media scanner and personal media agent for Plex. After a bit of searching, I found this guide from DIY Futurism which outlined a nice approach to the problem. These days, most of the content I watch is stored on my Plex server, so I decided to find a way to automatically download and add my favorite YouTube content to my Plex server. I have a small number of content creators that I enjoy following on YouTube, but I fundamentally dislike YouTube's shady algorithms, poor user experience, and invasive ads.
