# Scanner for Youtube-dl

**URL:** <https://forums.plex.tv/t/scanner-for-youtube-dl/40587>\
**Category:** Dev/API Corner\
**Tags:** scanner-agent-dev\
**Created:** [August 16, 2013, 1:29am UTC](https://forums.plex.tv/t/scanner-for-youtube-dl/40587 "2013-08-16T01:29:14Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![roguesith](https://avatars.discourse-cdn.com/v4/letter/r/f6c823/32.png) [@roguesith](https://forums.plex.tv/u/roguesith)\
**Post date:** [August 16, 2013, 1:29am UTC](https://forums.plex.tv/t/scanner-for-youtube-dl/40587/1 "2013-08-16T01:29:14Z")

</div>

Since youtube is slow and unreliable on my network, as well as several other reasons, I want to host HD downloaded youtube files on my lan. I use youtube-dl to keep playlists up to date.

&nbsp;

I have tried home video and TV with all sorts of naming formats like

&nbsp;

Playlist Name - S01EXX - Video title.mp4

&nbsp;

Plex never even infers the video title based on the filename.

&nbsp;

![post-146772-0-40475900-1376616513.png|690x338](upload://8uBlYh2TfYNVulSgnERs8dVVBGa.png)

&nbsp;

I can even put these in a 01 - youtubeid.mp4 format so that a scanner would have access to the id

&nbsp;

Is there a scanner that will load metadata from youtube? This would help so much.

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![OklahomaGreyBeard](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/oklahomagreybeard/32/112571_2.png) [@OklahomaGreyBeard](https://forums.plex.tv/u/OklahomaGreyBeard)\
**Post date:** [November 18, 2013, 5:52am UTC](https://forums.plex.tv/t/scanner-for-youtube-dl/40587/2 "2013-11-18T05:52:43Z")

</div>

I just started doing the same thing to archive some of my favorite youtube channels. It drove me nuts because some of the earlier videos I downloaded with youtube-dl showed the correct title and the rest were showing E01, E02, etc. After a bit of head scratching I realized on the early ones I included the --add-metadata switch. If the title is in the mp4 tag, plex will use it.

Now if I could only get plex to read the description file youtube-dl can write and use it as the plot...

---

<div class="post-metadata">

**Author:** ![Skycryer](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/skycryer/32/85998_2.png) [@Skycryer](https://forums.plex.tv/u/Skycryer)\
**Post date:** [December 15, 2014, 9:49am UTC](https://forums.plex.tv/t/scanner-for-youtube-dl/40587/3 "2014-12-15T09:49:43Z")

</div>

I try to create a scrapper with the youtube-dl script but i still get errors wit bad file descriptor. Can someone give me a hint how i can use the lib with plex correct?

---

<div class="post-metadata">

**Author:** ![s1mpleman](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/s1mpleman/32/6160_2.png) [@s1mpleman](https://forums.plex.tv/u/s1mpleman)\
**Post date:** [December 20, 2014, 9:45am UTC](https://forums.plex.tv/t/scanner-for-youtube-dl/40587/4 "2014-12-20T09:45:17Z")

</div>

Try the Extended Metadata plugin here:&nbsp;[https://forums.plex.tv/topic/83440-rel-extended-personal-media-shows-agent/](https://forums.plex.tv/topic/83440-rel-extended-personal-media-shows-agent/)  
  
Install both the scanner and Agent  
  
It will then pick up the .description files if you use something to rename them to .summary.&nbsp;  
  
It's what I've been doing, it will also assign and episode number based on a date.

---

<div class="post-metadata">

**Author:** ![hpp8140](https://avatars.discourse-cdn.com/v4/letter/h/779978/32.png) [@hpp8140](https://forums.plex.tv/u/hpp8140)\
**Post date:** [March 22, 2015, 12:10am UTC](https://forums.plex.tv/t/scanner-for-youtube-dl/40587/5 "2015-03-22T00:10:05Z")

</div>

This is the problem that keeps me away from Plex. Isn’t there a scanner that simply uses the filename if no metadata?

---

<div class="post-metadata">

**Author:** ![s1mpleman](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/s1mpleman/32/6160_2.png) [@s1mpleman](https://forums.plex.tv/u/s1mpleman)\
**Post date:** [March 22, 2015, 8:20am UTC](https://forums.plex.tv/t/scanner-for-youtube-dl/40587/6 "2015-03-22T08:20:32Z")

</div>

Yes, the above scanner I posted will. It takes the title from the file name anyway. You can also use youtube-dl to embed the meta data which that extended scanner will also pick up, thus not needing the description files.&nbsp;

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [December 20, 2019, 11:54pm UTC](https://forums.plex.tv/t/scanner-for-youtube-dl/40587/7 "2019-12-20T23:54:51Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
