My daughters love watching YouTube, but they cannot always be trusted to follow the content rules that we have given them.
So I uninstalled the YouTube app from their Roku and started downloading their favorite YouTube videos using the Video DownloadHelper extension on Firefox.
On my file server I created a new folder called “Kids YouTube” to separate it from the other content – we do not want to scrape meta-data from the internet for this content – all the meta-data will be local.
Next I created sub-folders for each YouTube channel, in my case “Toy Egg Videos” and “CookieSwirlC”.
Inside each of these folders I created a folder called “Season 1” – this is the folder that the downloaded videos go in. Because these are virtual TV shows we will name all videos as season 1, episode 1, 2, 3, 4, and so on.
So the folder structure is parent folder\channel folder\video folder.
At this point we need to work on three things:
- correctly naming the video files
- creating .nfo files for each video, and for the channel
- creating artwork so that the channel looks like a regular TV show in Kodi
This is the content of my \Kids YouTube\CookieSwirlC\Season 1 folder:
As you can see the filenames all contain – in an abbreviated notation – the season and episode number before the rest of the filename, for example, s01e01 is season one episode one.
Now we can create .nfo files for each episode. An .nfo file is a regular text file with the file extension changed from .txt to .nfo.
Make sure each video has an .nfo file with a matching filename as pictured above.
This is the template that I used for episode .nfo files:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <episodedetails> <title>LOL Surprise Pets Dog Has Puppies!</title> <showtitle>CookieSwirlC</showtitle> <season>1</season> <episode>1</episode> <plot>LOL Surprise Pets Dog Has Puppies!</plot> <runtime>5</runtime> <playcount>0</playcount> <lastplayed></lastplayed> <studio>CookieSwirlC</studio> <aired>2018-03-19</aired> <dateadded>2018-03-19 16:52:26</dateadded> </episodedetails>
The content of this file should be fairly self-explanatory. You will want a title for each video and a showtitle and studio for each YouTube channel. Make sure that the season and episode numbers in the .nfo file match up with the corresponding video.
The dateadded is useful to have so that new shows appear in the “recently added” view on Kodi. The other fields are optional, but for me nice to have as they do show up in different Kodi views.
Next we need a tvshow.nfo file for each YouTube channel and this goes in the channel folder as shown below:
This is the content of my \Kids YouTube\CookieSwirlC\tvshow.nfo:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <tvshow> <title>CookieSwirlC</title> <showtitle>CookieSwirlC</showtitle> <year>2018</year> <season>-1</season> <episode>999</episode> <displayseason>-1</displayseason> <displayepisode>-1</displayepisode> <plot>Welcome to the sweet world of Cookieswirlc, a unique toy channel bursting with super happy, positive, family friendly videos inspired by sugary cute toys like Disney, Frozen, Princesses, mermaids, Littlest Pet Shop LPS, My Little Pony MLP, Lego, Barbie dolls, Play Doh, Monster High, Shopkins and much muchy more!!! Everything from stories, movies, playset toy reviews, hauls, blind bag openings, toy unboxing, and fun do it yourself crafts!</plot> <mpaa>TV-Y</mpaa> <genre>You Tube</genre> <genre>Children</genre> <studio>YouTube</studio> <aired>2018-03-19</aired> <dateadded>2018-03-19 16:52:01</dateadded> </tvshow>
I set the episode number fairly high so that I should not have to worry about adjusting it in the future. As before populate the template with your own YouTube channel data.
To make the YouTube channels look like regular TV shows in Kodi you will need to make a backdrop.jpg, banner.jpg and folder.jpg for each channel:
These are the images that I created for the CookieSwirlC folder on my file server. I have included a link at the end of this blog post to the Kodi wiki where you can find the recommended dimensions for these images.
The final step that I took was to take full screen screenshots of each video. The screenshots go in the Season 1 folder. Make sure that they share the same filename as the video they came from and add – thumb to the end of the filename – see screenshot below:
At this point we are ready to add the Kids YouTube folder as a video source in Kodi. Make sure that you set the content type to TV Show and change the scraper setting from TVDB to local metadata.
Here’s a couple of screenshots of the finished product!