Help! How to jump from mode1 to mode2. - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26) +--- Thread: Help! How to jump from mode1 to mode2. (/showthread.php?tid=121430) |
Help! How to jump from mode1 to mode2. - medo.alyami - 2012-01-30 Hello guys, Im doing VOD plugin of a website that has few channels, but im facing a problem I couldn't solve it in 2 days, which is the plugin can't jump from index to index2 or other meaning mode==1 to mode==2. Let me give more details, to make it clear. So when i open the plugin it shows the CATEGORIES() for example ChannelOne,Two..etc, when i click on any of the channels, it shows the list of the TvShows, accidentally they have the same match, then when i click on any of the TvShow's name it will NOT jump to the list of TvShow's Episodes. ChannelOne>>Series List>>Episodes , I can't jump from Series List to Episodes Code: def CATEGORIES(): this is INDEX it list the Channels and the TVShows Code: def INDEX(url): The INDEX2 that i have problem with will not jump to the Episodes , or can't call the INDEX above.:confused2: Code: def INDEX2(url): Here is the Mode Code: if mode==None or url==None or len(url)<1: Hope I explained it clear. Please Can someone shows what im doing wrong. - BlueCop - 2012-01-30 addDir(name,url,1,thumbnail) from INDEX() should be addDir(name,url,2,thumbnail) I don't see your addDir function but i think thats the issue. I would assume INDEX2() might need its mode changed for its addDir() - medo.alyami - 2012-01-30 BlueCop Wrote:addDir(name,url,1,thumbnail) I appreciate that BlueCop for replying, Here is the addDir function, Code: def addDir(name,url,mode,iconimage): Im following this tutorial HOW-TO:Write plugins for XBMC If you want me to PM you the full code I will to make it more clear. Thank you again. - BlueCop - 2012-01-30 did changing the mode not fix it? - medo.alyami - 2012-01-30 BlueCop Wrote:did changing the mode not fix it? Nope. :confused2: |