2015-10-21, 23:13
This python script will create strm files, metadata, and images for Youtube channels so you can add them into Kodi as TV Shows.
https://github.com/nuentes/YoutubeToKodi
Why? Because I like to have all of my videos in a single place, and get them added there automatically. I couldn't find any existing scripts that did this, so I decided to make it myself.
How to use it:
1. Place the python script anywhere on your server or PC (it is NOT a Kodi add-on... yet)
2. add Youtube UserID's OR channelID's OR playlistID's into the text file (new line for each channel). If it is a playlist, you must start the line with a plus sign
3. Edit the user config section of the script to input: Google API Key (required), refresh interval (required), Destination for the files (required), your personal youtube ChannelID (optional)
4. run the script
5. While that's running, add the Destination Directory as a source to Kodi, and set it to scan as a TV show using local data
Known Issues:
1. The developer doesn't know python
2. Initial config isn't exactly a breeze
3. requires your own Google API Key
4. I can only get the 50 most recent uploads from a user (and I don't think there is any way around that)
5. Episodes are not automatically marked as watched after completion. I thought this would be resolved by adding the runtime field to the episode nfo file, but I was wrong.
6. There is no duration for short videos - at least on my skin, if the duration is under 1 minute, the duration appears as blank
I likely won't heavily support this unless there is some serious interest, and I can't get any other devs to help. Basically: known issue #1 makes it hard to resolve issues 2-7. I can see this becoming an actual Kodi add-on in the future, however I've never done anything like that, and that sounds like a job for someone else. I just thought I'd share my work with the community.
v0.2 releasenotes (10/24/2015)
-Windows compatibility was added (yay!)
-you can import all your youtube subscriptions automatically (and they will be updated whenever you add a new one)
-you can add playlists (append a "+" at the beginning of the line of the list.txt entry)
-changed episode naming pattern within nfo file
-a few bugfixes/optimizations
https://github.com/nuentes/YoutubeToKodi
Why? Because I like to have all of my videos in a single place, and get them added there automatically. I couldn't find any existing scripts that did this, so I decided to make it myself.
How to use it:
1. Place the python script anywhere on your server or PC (it is NOT a Kodi add-on... yet)
2. add Youtube UserID's OR channelID's OR playlistID's into the text file (new line for each channel). If it is a playlist, you must start the line with a plus sign
3. Edit the user config section of the script to input: Google API Key (required), refresh interval (required), Destination for the files (required), your personal youtube ChannelID (optional)
4. run the script
5. While that's running, add the Destination Directory as a source to Kodi, and set it to scan as a TV show using local data
Known Issues:
1. The developer doesn't know python
2. Initial config isn't exactly a breeze
3. requires your own Google API Key
4. I can only get the 50 most recent uploads from a user (and I don't think there is any way around that)
5. Episodes are not automatically marked as watched after completion. I thought this would be resolved by adding the runtime field to the episode nfo file, but I was wrong.
6. There is no duration for short videos - at least on my skin, if the duration is under 1 minute, the duration appears as blank
I likely won't heavily support this unless there is some serious interest, and I can't get any other devs to help. Basically: known issue #1 makes it hard to resolve issues 2-7. I can see this becoming an actual Kodi add-on in the future, however I've never done anything like that, and that sounds like a job for someone else. I just thought I'd share my work with the community.
v0.2 releasenotes (10/24/2015)
-Windows compatibility was added (yay!)
-you can import all your youtube subscriptions automatically (and they will be updated whenever you add a new one)
-you can add playlists (append a "+" at the beginning of the line of the list.txt entry)
-changed episode naming pattern within nfo file
-a few bugfixes/optimizations