{"id":174,"date":"2017-12-14T13:33:14","date_gmt":"2017-12-14T21:33:14","guid":{"rendered":"http:\/\/www.diyfuturism.com\/?p=174"},"modified":"2017-12-18T17:19:06","modified_gmt":"2017-12-19T01:19:06","slug":"auto-downloading-youtube-videos-for-plex-media-server","status":"publish","type":"post","link":"https:\/\/diyfuturism.com\/index.php\/2017\/12\/14\/auto-downloading-youtube-videos-for-plex-media-server\/","title":{"rendered":"Auto-Downloading Youtube Videos for Plex Media Server with youtube-dl"},"content":{"rendered":"<p>Recently it appears Youtube has decided they want to become cable TV, complete with the unending commercials for American pharmaceuticals. Since I cannot stand watching any advertising, am cloud averse, and also don&#8217;t like Youtube&#8217;s terribly busy interface, I have automated downloading of channels and playlists I follow with the wonderful <a href=\"https:\/\/rg3.github.io\/youtube-dl\/\">youtube-dl<\/a>\u00a0tool into my\u00a0<a href=\"http:\/\/www.diyfuturism.com\/index.php\/2017\/11\/27\/hardware-odroid-xu4-as-plex-media-server\/\" target=\"_blank\" rel=\"noopener\">Odroid XU4 based Plex Media Server<\/a>.<\/p>\n<p>Downloading is pretty straight forward as long as we take care to follow Plex&#8217;s file naming guidelines. Getting all the metadata in without doing any work requires a little bit of configuration, and to automate it all takes a few simple shell scripts.<\/p>\n<p><!--more--><br \/>\n<script type=\"text\/javascript\">\namzn_assoc_placement = \"adunit0\";\namzn_assoc_tracking_id = \"diyfuturism-20\";\namzn_assoc_ad_mode = \"manual\";\namzn_assoc_ad_type = \"smart\";\namzn_assoc_marketplace = \"amazon\";\namzn_assoc_region = \"US\";\namzn_assoc_linkid = \"7eae54f15f66d031af379e459c5ae185\";\namzn_assoc_design = \"in_content\";\namzn_assoc_asins = \"B0761YJY27,B073WLD6ZF,B0749BPBSP,B074HQ4QHF\";\namzn_assoc_title = \"Odroid XU4 Plex Server\";\namzn_assoc_search_bar = \"false\";\n<\/script><br \/>\n<script src=\"\/\/z-na.amazon-adsystem.com\/widgets\/onejs?MarketPlace=US\"><\/script><\/p>\n<h2>PLEX SERVER SETUP<\/h2>\n<p>I like everything to be tidy in my Plex Server, so the immediate problem I noticed with downloading Youtube videos is that Plex doesn&#8217;t really have a good way to scrape the the metadata. Some popular channels have TVDB entries, but most don&#8217;t. If you select &#8220;TV Shows&#8221; as the type of library it won&#8217;t show any videos at all, but if you select &#8220;Other Videos&#8221; it will refuse to even show manually added metadata.<\/p>\n<p>Fortunately there is a custom scanner and media agent that makes organizing personal video archives much easier. We need to install both:<\/p>\n<ul>\n<li><a href=\"https:\/\/bitbucket.org\/mjarends\/plex-scanners\" target=\"_blank\" rel=\"noopener\">Extended Personal Media Scanner<\/a><\/li>\n<li><a href=\"https:\/\/bitbucket.org\/mjarends\/extendedpersonalmedia-agent.bundle\" target=\"_blank\" rel=\"noopener\">Extended Personal Media Shows Agent<\/a><\/li>\n<\/ul>\n<p>Installing is fairly straightforward, copy the files to the appropriate directories for your\u00a0 operating system.<\/p>\n<p>Restart Plex Media Server, and go on over to the Server settings page, enable the new media agents here:<\/p>\n<p><img data-attachment-id=\"176\" data-permalink=\"https:\/\/diyfuturism.com\/index.php\/2017\/12\/14\/auto-downloading-youtube-videos-for-plex-media-server\/screen-shot-2017-12-14-at-11-51-41-am\/\" data-orig-file=\"https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-14-at-11.51.41-AM.png?fit=1175%2C422&amp;ssl=1\" data-orig-size=\"1175,422\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Screen Shot 2017-12-14 at 11.51.41 AM\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-14-at-11.51.41-AM.png?fit=300%2C108&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-14-at-11.51.41-AM.png?fit=854%2C307&amp;ssl=1\" loading=\"lazy\" class=\"aligncenter wp-image-176 size-large\" src=\"https:\/\/i2.wp.com\/www.diyfuturism.com\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-14-at-11.51.41-AM-1024x368.png?resize=730%2C262\" alt=\"\" width=\"730\" height=\"262\" srcset=\"https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-14-at-11.51.41-AM.png?resize=1024%2C368&amp;ssl=1 1024w, https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-14-at-11.51.41-AM.png?resize=600%2C215&amp;ssl=1 600w, https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-14-at-11.51.41-AM.png?resize=300%2C108&amp;ssl=1 300w, https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-14-at-11.51.41-AM.png?resize=768%2C276&amp;ssl=1 768w, https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-14-at-11.51.41-AM.png?w=1175&amp;ssl=1 1175w\" sizes=\"(max-width: 730px) 100vw, 730px\" data-recalc-dims=\"1\" \/><\/p>\n<p>Now we can create a Youtube library of type &#8220;TV Shows&#8221; if we enable our media agent and scanner here:<\/p>\n<p><img data-attachment-id=\"179\" data-permalink=\"https:\/\/diyfuturism.com\/index.php\/2017\/12\/14\/auto-downloading-youtube-videos-for-plex-media-server\/screen-shot-2017-12-14-at-12-37-55-pm\/\" data-orig-file=\"https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-14-at-12.37.55-PM.png?fit=731%2C527&amp;ssl=1\" data-orig-size=\"731,527\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Screen Shot 2017-12-14 at 12.37.55 PM\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-14-at-12.37.55-PM.png?fit=300%2C216&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-14-at-12.37.55-PM.png?fit=731%2C527&amp;ssl=1\" loading=\"lazy\" class=\"aligncenter wp-image-179 size-full\" src=\"https:\/\/i0.wp.com\/www.diyfuturism.com\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-14-at-12.37.55-PM.png?resize=731%2C527\" alt=\"\" width=\"731\" height=\"527\" srcset=\"https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-14-at-12.37.55-PM.png?w=731&amp;ssl=1 731w, https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-14-at-12.37.55-PM.png?resize=600%2C433&amp;ssl=1 600w, https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-14-at-12.37.55-PM.png?resize=300%2C216&amp;ssl=1 300w\" sizes=\"(max-width: 731px) 100vw, 731px\" data-recalc-dims=\"1\" \/><\/p>\n<p>That&#8217;s all we need to do on the Plex side.<br \/>\n<script type=\"text\/javascript\">\namzn_assoc_placement = \"adunit0\";\namzn_assoc_tracking_id = \"diyfuturism-20\";\namzn_assoc_ad_mode = \"search\";\namzn_assoc_ad_type = \"smart\";\namzn_assoc_marketplace = \"amazon\";\namzn_assoc_region = \"US\";\namzn_assoc_default_search_phrase = \"odroid\";\namzn_assoc_default_category = \"All\";\namzn_assoc_linkid = \"8d446f70e272adcece2c66b2315cb062\";\namzn_assoc_design = \"in_content\";\n<\/script><br \/>\n<script src=\"\/\/z-na.amazon-adsystem.com\/widgets\/onejs?MarketPlace=US\"><\/script><\/p>\n<h2>DOWNLOADING YOUTUBE<\/h2>\n<p><img data-attachment-id=\"184\" data-permalink=\"https:\/\/diyfuturism.com\/index.php\/2017\/12\/14\/auto-downloading-youtube-videos-for-plex-media-server\/screen-shot-2017-12-14-at-1-24-55-pm\/\" data-orig-file=\"https:\/\/i1.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-14-at-1.24.55-PM.png?fit=1124%2C931&amp;ssl=1\" data-orig-size=\"1124,931\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Screen Shot 2017-12-14 at 1.24.55 PM\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i1.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-14-at-1.24.55-PM.png?fit=300%2C248&amp;ssl=1\" data-large-file=\"https:\/\/i1.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-14-at-1.24.55-PM.png?fit=854%2C707&amp;ssl=1\" loading=\"lazy\" class=\"aligncenter size-full wp-image-184\" src=\"https:\/\/i1.wp.com\/www.diyfuturism.com\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-14-at-1.24.55-PM.png?resize=854%2C707\" alt=\"\" width=\"854\" height=\"707\" srcset=\"https:\/\/i1.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-14-at-1.24.55-PM.png?w=1124&amp;ssl=1 1124w, https:\/\/i1.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-14-at-1.24.55-PM.png?resize=600%2C497&amp;ssl=1 600w, https:\/\/i1.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-14-at-1.24.55-PM.png?resize=300%2C248&amp;ssl=1 300w, https:\/\/i1.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-14-at-1.24.55-PM.png?resize=768%2C636&amp;ssl=1 768w, https:\/\/i1.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-14-at-1.24.55-PM.png?resize=1024%2C848&amp;ssl=1 1024w\" sizes=\"(max-width: 854px) 100vw, 854px\" data-recalc-dims=\"1\" \/><\/p>\n<p><a href=\"https:\/\/rg3.github.io\/youtube-dl\/\">Youtube-dl<\/a> is quite powerful. You will need to install it according to the manual instructions because inevitably the package for your OS will be out of date. In Linux this is accomplished at a shell:<\/p>\n<pre>sudo curl -L https:\/\/yt-dl.org\/downloads\/latest\/youtube-dl -o \/usr\/local\/bin\/youtube-dl\r\nsudo chmod a+rx \/usr\/local\/bin\/youtube-dl<\/pre>\n<p>Looking over the youtube-dl docs you will see there are quite a few options for what to download and how to add those files. For our purposes here we&#8217;re going to archive an entire channel\/playlist, and then set some scripts up to check for new future videos on those channels, with all the metadata and thumbnails.<\/p>\n<p>So here&#8217;s one long command to download an entire channel (or playlist), starting at the beginning, getting the best audio and video and combining them, adding metadata, writing thumbnail, outputting a Plex preferred filename and batching this while also avoiding re-downloading things we&#8217;ve already downloaded. Whew!<\/p>\n<pre class=\"p1\"><span class=\"s1\">youtube-dl --playlist-reverse --download-archive \/mnt\/Media\/Youtube\/downloaded.txt -i -o \"%(uploader)s\/%(playlist)s\/%(playlist)s - S01E%(playlist_index)s - %(title)s [%(id)s].%(ext)s\" -f bestvideo[ext=mp4]+bestaudio[ext=m4a] --merge-output-format mp4 --add-metadata --write-thumbnail --batch-file=\/mnt\/Media\/Youtube\/channel_list.txt<\/span><\/pre>\n<p>You can see there are two TXT files here that I have placed in my Youtube media folder. One is a list of URLs of things I want to download, the other is a list of already downloaded media so that future runs of youtube-dl will know what to grab.<\/p>\n<p>Let&#8217;s simply put that command in a shell script and save it as <strong>youtube_archive.sh<\/strong><\/p>\n<pre>#!\/bin\/bash\r\n<span class=\"s1\">youtube-dl --playlist-reverse --download-archive \/mnt\/Media\/Youtube\/downloaded.txt -i -o \"%(uploader)s\/%(playlist)s\/%(playlist)s - S01E%(playlist_index)s - %(title)s [%(id)s].%(ext)s\" -f bestvideo[ext=mp4]+bestaudio[ext=m4a] --merge-output-format mp4 --add-metadata --write-thumbnail --batch-file=\/mnt\/Media\/Youtube\/channel_list.txt<\/span><\/pre>\n<p>Then add to cron with the <strong>crontab -e<\/strong> command, this will run every 12 hours:<\/p>\n<pre class=\"p1\"><span class=\"s1\">0 *\/12 * * * \/path\/to\/script\/youtube_archive.sh<\/span><\/pre>\n<p>For Youtube channels or playlists where you want to use different settings for downloading or naming (ie. if a channel publishes separate web series to different playlists, if you only want to download the latest videos instead of everything, etc.). Then add your command to the <strong>youtube_archive.sh<\/strong> script but use a different <strong>channel_list.txt<\/strong>.<\/p>\n<h2>MORE LINKS<\/h2>\n<ul>\n<li><a href=\"http:\/\/www.diyfuturism.com\/index.php\/2017\/11\/27\/hardware-odroid-xu4-as-plex-media-server\/\">DIY Futurism: Odroid XU4 as Plex Media Server<\/a><\/li>\n<li><a href=\"https:\/\/www.reddit.com\/r\/DataHoarder\/\" class=\"broken_link\">https:\/\/www.reddit.com\/r\/DataHoarder\/<\/a><\/li>\n<li><a href=\"https:\/\/rg3.github.io\/youtube-dl\/\" target=\"_blank\" rel=\"noopener\">youtube-dl<\/a><\/li>\n<\/ul>\n<p><script type=\"text\/javascript\">\namzn_assoc_placement = \"adunit0\";\namzn_assoc_tracking_id = \"diyfuturism-20\";\namzn_assoc_ad_mode = \"search\";\namzn_assoc_ad_type = \"smart\";\namzn_assoc_marketplace = \"amazon\";\namzn_assoc_region = \"US\";\namzn_assoc_default_search_phrase = \"streaming box roku\";\namzn_assoc_default_category = \"All\";\namzn_assoc_linkid = \"8d446f70e272adcece2c66b2315cb062\";\namzn_assoc_design = \"in_content\";\n<\/script><br \/>\n<script src=\"\/\/z-na.amazon-adsystem.com\/widgets\/onejs?MarketPlace=US\"><\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"wpm_excerpt clearfix\"><p>Recently it appears Youtube has decided they want to become cable TV, complete with the unending commercials for American pharmaceuticals. Since I cannot stand watching any &hellip;<\/p>\n<\/div>","protected":false},"author":1,"featured_media":185,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false},"categories":[12,88],"tags":[47,95,20,22,24,21,90,89,93,94,91,92],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v16.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Auto-Downloading Youtube Videos for Plex Media Server with youtube-dl - DIY Futurism<\/title>\n<meta name=\"description\" content=\"How to guide for downloading Youtube videos with youtube-dl to preserve metadata for use in Plex Media Center.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/diyfuturism.com\/index.php\/2017\/12\/14\/auto-downloading-youtube-videos-for-plex-media-server\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Auto-Downloading Youtube Videos for Plex Media Server with youtube-dl - DIY Futurism\" \/>\n<meta property=\"og:description\" content=\"How to guide for downloading Youtube videos with youtube-dl to preserve metadata for use in Plex Media Center.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/diyfuturism.com\/index.php\/2017\/12\/14\/auto-downloading-youtube-videos-for-plex-media-server\/\" \/>\n<meta property=\"og:site_name\" content=\"DIY Futurism\" \/>\n<meta property=\"article:published_time\" content=\"2017-12-14T21:33:14+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-12-19T01:19:06+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-14-at-1.30.50-PM.png?fit=1133%2C776&#038;ssl=1\" \/>\n\t<meta property=\"og:image:width\" content=\"1133\" \/>\n\t<meta property=\"og:image:height\" content=\"776\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@diyfuturism\" \/>\n<meta name=\"twitter:site\" content=\"@diyfuturism\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"brad\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/diyfuturism.com\/#website\",\"url\":\"https:\/\/diyfuturism.com\/\",\"name\":\"DIY Futurism\",\"description\":\"Adventures in Open Source Smart Home Projects\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/diyfuturism.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/diyfuturism.com\/index.php\/2017\/12\/14\/auto-downloading-youtube-videos-for-plex-media-server\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-14-at-1.30.50-PM.png?fit=1133%2C776&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-14-at-1.30.50-PM.png?fit=1133%2C776&ssl=1\",\"width\":1133,\"height\":776},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/diyfuturism.com\/index.php\/2017\/12\/14\/auto-downloading-youtube-videos-for-plex-media-server\/#webpage\",\"url\":\"https:\/\/diyfuturism.com\/index.php\/2017\/12\/14\/auto-downloading-youtube-videos-for-plex-media-server\/\",\"name\":\"Auto-Downloading Youtube Videos for Plex Media Server with youtube-dl - DIY Futurism\",\"isPartOf\":{\"@id\":\"https:\/\/diyfuturism.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/diyfuturism.com\/index.php\/2017\/12\/14\/auto-downloading-youtube-videos-for-plex-media-server\/#primaryimage\"},\"datePublished\":\"2017-12-14T21:33:14+00:00\",\"dateModified\":\"2017-12-19T01:19:06+00:00\",\"author\":{\"@id\":\"https:\/\/diyfuturism.com\/#\/schema\/person\/b93619fac07567640bd87cc613a55b7c\"},\"description\":\"How to guide for downloading Youtube videos with youtube-dl to preserve metadata for use in Plex Media Center.\",\"breadcrumb\":{\"@id\":\"https:\/\/diyfuturism.com\/index.php\/2017\/12\/14\/auto-downloading-youtube-videos-for-plex-media-server\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/diyfuturism.com\/index.php\/2017\/12\/14\/auto-downloading-youtube-videos-for-plex-media-server\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/diyfuturism.com\/index.php\/2017\/12\/14\/auto-downloading-youtube-videos-for-plex-media-server\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/diyfuturism.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Auto-Downloading Youtube Videos for Plex Media Server with youtube-dl\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/diyfuturism.com\/#\/schema\/person\/b93619fac07567640bd87cc613a55b7c\",\"name\":\"brad\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/diyfuturism.com\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/7e2d60eb1f322b4ad6040a746946a361?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/7e2d60eb1f322b4ad6040a746946a361?s=96&d=mm&r=g\",\"caption\":\"brad\"},\"description\":\"I'm a professional artist who likes to tinker with building things in my spare time.\",\"sameAs\":[\"https:\/\/twitter.com\/@diyfuturism\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Auto-Downloading Youtube Videos for Plex Media Server with youtube-dl - DIY Futurism","description":"How to guide for downloading Youtube videos with youtube-dl to preserve metadata for use in Plex Media Center.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/diyfuturism.com\/index.php\/2017\/12\/14\/auto-downloading-youtube-videos-for-plex-media-server\/","og_locale":"en_US","og_type":"article","og_title":"Auto-Downloading Youtube Videos for Plex Media Server with youtube-dl - DIY Futurism","og_description":"How to guide for downloading Youtube videos with youtube-dl to preserve metadata for use in Plex Media Center.","og_url":"https:\/\/diyfuturism.com\/index.php\/2017\/12\/14\/auto-downloading-youtube-videos-for-plex-media-server\/","og_site_name":"DIY Futurism","article_published_time":"2017-12-14T21:33:14+00:00","article_modified_time":"2017-12-19T01:19:06+00:00","og_image":[{"width":1133,"height":776,"url":"https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-14-at-1.30.50-PM.png?fit=1133%2C776&ssl=1","path":"\/var\/www\/html\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-14-at-1.30.50-PM.png","size":"full","id":185,"alt":"","pixels":879208,"type":"image\/png"}],"twitter_card":"summary_large_image","twitter_creator":"@diyfuturism","twitter_site":"@diyfuturism","twitter_misc":{"Written by":"brad","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/diyfuturism.com\/#website","url":"https:\/\/diyfuturism.com\/","name":"DIY Futurism","description":"Adventures in Open Source Smart Home Projects","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/diyfuturism.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","@id":"https:\/\/diyfuturism.com\/index.php\/2017\/12\/14\/auto-downloading-youtube-videos-for-plex-media-server\/#primaryimage","inLanguage":"en-US","url":"https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-14-at-1.30.50-PM.png?fit=1133%2C776&ssl=1","contentUrl":"https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-14-at-1.30.50-PM.png?fit=1133%2C776&ssl=1","width":1133,"height":776},{"@type":"WebPage","@id":"https:\/\/diyfuturism.com\/index.php\/2017\/12\/14\/auto-downloading-youtube-videos-for-plex-media-server\/#webpage","url":"https:\/\/diyfuturism.com\/index.php\/2017\/12\/14\/auto-downloading-youtube-videos-for-plex-media-server\/","name":"Auto-Downloading Youtube Videos for Plex Media Server with youtube-dl - DIY Futurism","isPartOf":{"@id":"https:\/\/diyfuturism.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/diyfuturism.com\/index.php\/2017\/12\/14\/auto-downloading-youtube-videos-for-plex-media-server\/#primaryimage"},"datePublished":"2017-12-14T21:33:14+00:00","dateModified":"2017-12-19T01:19:06+00:00","author":{"@id":"https:\/\/diyfuturism.com\/#\/schema\/person\/b93619fac07567640bd87cc613a55b7c"},"description":"How to guide for downloading Youtube videos with youtube-dl to preserve metadata for use in Plex Media Center.","breadcrumb":{"@id":"https:\/\/diyfuturism.com\/index.php\/2017\/12\/14\/auto-downloading-youtube-videos-for-plex-media-server\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/diyfuturism.com\/index.php\/2017\/12\/14\/auto-downloading-youtube-videos-for-plex-media-server\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/diyfuturism.com\/index.php\/2017\/12\/14\/auto-downloading-youtube-videos-for-plex-media-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/diyfuturism.com\/"},{"@type":"ListItem","position":2,"name":"Auto-Downloading Youtube Videos for Plex Media Server with youtube-dl"}]},{"@type":"Person","@id":"https:\/\/diyfuturism.com\/#\/schema\/person\/b93619fac07567640bd87cc613a55b7c","name":"brad","image":{"@type":"ImageObject","@id":"https:\/\/diyfuturism.com\/#personlogo","inLanguage":"en-US","url":"https:\/\/secure.gravatar.com\/avatar\/7e2d60eb1f322b4ad6040a746946a361?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/7e2d60eb1f322b4ad6040a746946a361?s=96&d=mm&r=g","caption":"brad"},"description":"I'm a professional artist who likes to tinker with building things in my spare time.","sameAs":["https:\/\/twitter.com\/@diyfuturism"]}]}},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/12\/Screen-Shot-2017-12-14-at-1.30.50-PM.png?fit=1133%2C776&ssl=1","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9q0Cl-2O","jetpack-related-posts":[{"id":868,"url":"https:\/\/diyfuturism.com\/index.php\/2020\/08\/16\/plex-locast-recording-local-tv-without-the-antenna\/","url_meta":{"origin":174,"position":0},"title":"Plex &#038; Locast: Recording Local TV Without the Antenna","date":"August 16, 2020","format":false,"excerpt":"Update: Locast has ceased operations. Old post archived here: I have been a long time Plex user for years. Alongside my extensive movie collection, I also like to keep up on the local news and occasionally watch some sports or TV special. Previously I had successfully used a TV tuner\u2026","rel":"","context":"In &quot;Home Server&quot;","img":{"alt_text":"Plex DVR","src":"https:\/\/i1.wp.com\/diyfuturism.com\/wp-content\/uploads\/2020\/08\/2020-08-16-190142_857x727_scrot.png?fit=857%2C727&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":79,"url":"https:\/\/diyfuturism.com\/index.php\/2017\/11\/27\/hardware-odroid-xu4-as-plex-media-server\/","url_meta":{"origin":174,"position":1},"title":"Hardware: Odroid XU4 as Plex Media Server","date":"November 27, 2017","format":false,"excerpt":"As part of my efforts to be cloud non-dependent, I have a NAS full of several terabytes of music, movies, and TV shows.\u00a0Plex\u00a0is of course everyone's favorite software for solving this problem, as it essentially turns your hard drive full of files into a private Netflix capable of streaming and\u2026","rel":"","context":"In &quot;Hardware&quot;","img":{"alt_text":"","src":"https:\/\/i2.wp.com\/www.diyfuturism.com\/wp-content\/uploads\/2017\/11\/201704250351342687-1.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":855,"url":"https:\/\/diyfuturism.com\/index.php\/2020\/06\/14\/plexamp-music-streaming-with-raspberry-pi-zero\/","url_meta":{"origin":174,"position":2},"title":"Plexamp Music Streaming with Raspberry Pi Zero","date":"June 14, 2020","format":false,"excerpt":"I've been a Plex user for a very long while. They've recently put a lot of effort into the re-vamped Plexamp music player and it's quickly become my primary means of listening to my music library. I wanted to be able to stream Plexamp to my hi-fi stereo the same\u2026","rel":"","context":"In &quot;Electronics&quot;","img":{"alt_text":"","src":"https:\/\/i1.wp.com\/diyfuturism.com\/wp-content\/uploads\/2020\/06\/Screenshot-20200614154205-997x628-1.png?fit=997%2C628&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":14,"url":"https:\/\/diyfuturism.com\/index.php\/2017\/11\/20\/my-smart-home-hardware-list\/","url_meta":{"origin":174,"position":3},"title":"My Smart Home: Hardware List","date":"November 20, 2017","format":false,"excerpt":"An ongoing list of all the hardware I've gradually acquired. Links are to Amazon, but if you are patient most things can be imported from China for much cheaper. Want to get started in home automation for cheap?\u00a0Check out my\u00a0$200 DIY Smart Home Shopping List to get started with a\u2026","rel":"","context":"In &quot;Hardware&quot;","img":{"alt_text":"","src":"https:\/\/i1.wp.com\/diyfuturism.com\/wp-content\/uploads\/2017\/11\/Screen-Shot-2017-11-27-at-3.21.16-PM.png?fit=1200%2C694&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":517,"url":"https:\/\/diyfuturism.com\/index.php\/2018\/03\/20\/pi-to-nuc-part-1-migrating-hass-io-to-a-virtual-machine-proxmox-docker\/","url_meta":{"origin":174,"position":4},"title":"Pi to NUC Part 1: Migrating Hass.IO to a Virtual Machine with Proxmox &#038; Docker","date":"March 20, 2018","format":false,"excerpt":"As my Home Assistant setup has become increasingly complex, I've started to see the limitations of the Raspberry Pi platform. Graphs are slow, and the history and logbook are basically unusable to me. Everything works, but I'd like to be able to use these things with a lot more data\u2026","rel":"","context":"In &quot;Hardware&quot;","img":{"alt_text":"","src":"https:\/\/i1.wp.com\/diyfuturism.com\/wp-content\/uploads\/2018\/03\/nuc.jpeg?fit=645%2C428&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":585,"url":"https:\/\/diyfuturism.com\/index.php\/2018\/05\/13\/installing-volumio-proxmox-virtual-machine\/","url_meta":{"origin":174,"position":5},"title":"Installing Volumio in a Proxmox Virtual Machine","date":"May 13, 2018","format":false,"excerpt":"Volumio is a really cool open source audio player project, meant for high quality playback and easy use with cheap devices. Basically, a plug-and-play network music appliance. I have a few already around the house - a Pi Zero W in the kitchen for streaming radio, a Pi 3 with\u2026","rel":"","context":"In &quot;Linux&quot;","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/diyfuturism.com\/wp-content\/uploads\/2018\/05\/Screenshot-from-2018-05-13-204320.png?fit=1200%2C929&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"https:\/\/diyfuturism.com\/index.php\/wp-json\/wp\/v2\/posts\/174"}],"collection":[{"href":"https:\/\/diyfuturism.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/diyfuturism.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/diyfuturism.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/diyfuturism.com\/index.php\/wp-json\/wp\/v2\/comments?post=174"}],"version-history":[{"count":10,"href":"https:\/\/diyfuturism.com\/index.php\/wp-json\/wp\/v2\/posts\/174\/revisions"}],"predecessor-version":[{"id":859,"href":"https:\/\/diyfuturism.com\/index.php\/wp-json\/wp\/v2\/posts\/174\/revisions\/859"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/diyfuturism.com\/index.php\/wp-json\/wp\/v2\/media\/185"}],"wp:attachment":[{"href":"https:\/\/diyfuturism.com\/index.php\/wp-json\/wp\/v2\/media?parent=174"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/diyfuturism.com\/index.php\/wp-json\/wp\/v2\/categories?post=174"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/diyfuturism.com\/index.php\/wp-json\/wp\/v2\/tags?post=174"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}