Kodi Community Forum

Full Version: Creating a custom
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello All,

So I'm working on writing a video plugin for the media network that I run.  I've downloaded the video plugin template and have been working on adapting it to my site and feed.  I've been able to setup the basics of the plugin.  I then took a snippet of my json feed and placed it within the variable VIDEOS.  I've so far have been able to get the plugin to load.  It will load the shows with no issues.  However, when you click a show I'd like to pull the Seasons from the json file.  A copy of my main.py can be found here https://github.com/SimplySynced/plugin.v...in/main.py

However the error I am getting can be found here https://paste.kodi.tv/yeduvojaju.kodi  Basically my error being 

TypeError: list indices must be integers, not str

Of course my next thing would be then using those seasons numbers to get the episodes which would then be my play items.  I see that getting a bit tricky as well.  I believe if I can get this part figured out that perhaps it won't be as diffficult.

Any help would be greatly appreciated!


My mistake I see what was going on.  I did a convert on the number and now it's working on my season.  Just need to pull episode info but I think I can see how I can pull it.  Hopefully this helps someone else.