2015-12-30, 14:59
Here is a quick guide on creating an add-on that can browse any specific Youtube channel. It uses the plugin tools module from Jesús, so thanks to him its very easy.
I wanted to create a specific youtube channel Add-on as I browse a it regularly and wanted a quick way to get to those with minimum fuss.
I just copied an existing add-on I found, so please feel free to comment on the code or way of doing things. I'm always looking to improve.
Step 1 Setup your environment
First thing is to setup the development environment for windows to create and edit Kodi Addons
I'd suggest using notepad++ to edit the source python and xml files.
Now install a blank version of Kodi on your development computer.
Now create a shortcut on your desktop to C:\Users\yourusername\AppData\Roaming\Kodi\addons. This will allow you to edit the files quickly.
Step 2 Setup the add-on
Download the source template for this add-on https://github.com/zag2me/plugin.video.fullycharged
Extract the source into a folder like this
Notice we are not copying this to the kodi userdata folder yet. We have some work to do to change the youtube channel and add-on metadata first.
Step 3 Edit the Add-on code
Now open the default.py file with notepad++.
On line 3 select "FULLYCHARGEDSHOW" with the mouse cursor, then hit ctrl + h on your keyboard
Now enter the youtube channel id you want into the replace field like so. You can find the channel ID by going to youtube and searching for a channel. Then copy the ID after /user/.
Hit replace all, and you should see the code change in all the correct places.
At this point you will also want to change the Add-on title on line 43.
Step 4 Edit the Addon metadata
Now open the add.xml file with notepad++
Enter your own details for the different fields one at a time from the top.
You will need to give your Add-on a name and enter the correct contact details further down the bottom of the file.
Make sure you give it a good description.
Step 5 Add icon and fanart
Now make a new icon and fanart pictures and replace the current one icon.png and fanart.jpg in the Add-on folder.
Step 6 Zip up and install
Go back to the C:\Code folder and zip up the Add-on into a single file by clicking the Add-on folder and send to >> zip file.
Now load up Kodi and install your Add-on from a zip file. This is important as it will also install the dependencies needed such as the youtube module.
You can now switch back to your desktop and click the shortcut you made earlier and you should see the complete Add-on installed in there.
Now go back to Kodi and launch the Add-on. All being well, you should be able to browse the youtube channel now from inside Kodi!
Congratulations you've just created your first Kodi Youtube Channel Add-on!!
I wanted to create a specific youtube channel Add-on as I browse a it regularly and wanted a quick way to get to those with minimum fuss.
I just copied an existing add-on I found, so please feel free to comment on the code or way of doing things. I'm always looking to improve.
Step 1 Setup your environment
First thing is to setup the development environment for windows to create and edit Kodi Addons
I'd suggest using notepad++ to edit the source python and xml files.
Now install a blank version of Kodi on your development computer.
Now create a shortcut on your desktop to C:\Users\yourusername\AppData\Roaming\Kodi\addons. This will allow you to edit the files quickly.
Step 2 Setup the add-on
Download the source template for this add-on https://github.com/zag2me/plugin.video.fullycharged
Extract the source into a folder like this
Notice we are not copying this to the kodi userdata folder yet. We have some work to do to change the youtube channel and add-on metadata first.
Step 3 Edit the Add-on code
Now open the default.py file with notepad++.
On line 3 select "FULLYCHARGEDSHOW" with the mouse cursor, then hit ctrl + h on your keyboard
Now enter the youtube channel id you want into the replace field like so. You can find the channel ID by going to youtube and searching for a channel. Then copy the ID after /user/.
Hit replace all, and you should see the code change in all the correct places.
At this point you will also want to change the Add-on title on line 43.
Step 4 Edit the Addon metadata
Now open the add.xml file with notepad++
Enter your own details for the different fields one at a time from the top.
You will need to give your Add-on a name and enter the correct contact details further down the bottom of the file.
Make sure you give it a good description.
Step 5 Add icon and fanart
Now make a new icon and fanart pictures and replace the current one icon.png and fanart.jpg in the Add-on folder.
Step 6 Zip up and install
Go back to the C:\Code folder and zip up the Add-on into a single file by clicking the Add-on folder and send to >> zip file.
Now load up Kodi and install your Add-on from a zip file. This is important as it will also install the dependencies needed such as the youtube module.
You can now switch back to your desktop and click the shortcut you made earlier and you should see the complete Add-on installed in there.
Now go back to Kodi and launch the Add-on. All being well, you should be able to browse the youtube channel now from inside Kodi!
Congratulations you've just created your first Kodi Youtube Channel Add-on!!