/[projects]/misc/xbmc/plugin.video.todic/default.py
ViewVC logotype

Diff of /misc/xbmc/plugin.video.todic/default.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2601 by torben, Mon Jul 13 14:33:39 2015 UTC revision 3037 by torben, Mon May 30 20:26:56 2016 UTC
# Line 7  Line 7 
7  '''  '''
8    
9  import sys  import sys
 import cgi as urlparse  
10  import os  import os
11    
12    
# Line 24  from xml.dom.minidom import parseString Line 23  from xml.dom.minidom import parseString
23    
24  __addon__ = xbmcaddon.Addon(id='plugin.video.todic')  __addon__ = xbmcaddon.Addon(id='plugin.video.todic')
25  __key__ = __addon__.getSetting('xbmckey').lower()  __key__ = __addon__.getSetting('xbmckey').lower()
26  __backend__ = "http://todic.dk/xbmc.php?xbmckey=" + __key__  __backend__ = "https://todic.dk/xbmc.php?xbmckey=" + __key__
27  fanartImage = os.path.join(__addon__.getAddonInfo('path'), 'movie_bg_blur.jpg')  fanartImage = os.path.join(__addon__.getAddonInfo('path'), 'movie_bg_blur.jpg')
28  datapath = xbmc.translatePath(  datapath = xbmc.translatePath(
29      'special://profile/addon_data/plugin.video.todic/')      'special://profile/addon_data/plugin.video.todic/')
# Line 175  def rootMenu(): Line 174  def rootMenu():
174      listitem.setProperty('Fanart_Image', fanartImage)      listitem.setProperty('Fanart_Image', fanartImage)
175    
176      u = sys.argv[0] + "?mode=10&name="      u = sys.argv[0] + "?mode=10&name="
177      ok = xbmcplugin.addDirectoryItem(      xbmcplugin.addDirectoryItem(
178          handle=int(sys.argv[1]), url=u, listitem=listitem, isFolder=True)          handle=int(sys.argv[1]), url=u, listitem=listitem, isFolder=True)
179    
180      # add search series      # add search series
# Line 184  def rootMenu(): Line 183  def rootMenu():
183      listitem.setProperty('Fanart_Image', fanartImage)      listitem.setProperty('Fanart_Image', fanartImage)
184    
185      u = sys.argv[0] + "?mode=11&name="      u = sys.argv[0] + "?mode=11&name="
186      ok = xbmcplugin.addDirectoryItem(      xbmcplugin.addDirectoryItem(
187          handle=int(sys.argv[1]), url=u, listitem=listitem, isFolder=True)          handle=int(sys.argv[1]), url=u, listitem=listitem, isFolder=True)
188    
189      xbmcplugin.endOfDirectory(int(sys.argv[1]))      xbmcplugin.endOfDirectory(int(sys.argv[1]))
# Line 238  def buildList(url, title, endlist=True): Line 237  def buildList(url, title, endlist=True):
237    
238          u = sys.argv[0] + "?mode=" + urllib.quote(mode) + "&name=" + urllib.quote(          u = sys.argv[0] + "?mode=" + urllib.quote(mode) + "&name=" + urllib.quote(
239              name) + "&url=" + urllib.quote(url) + "&description=" + urllib.quote(description)              name) + "&url=" + urllib.quote(url) + "&description=" + urllib.quote(description)
240          ok = xbmcplugin.addDirectoryItem(          xbmcplugin.addDirectoryItem(
241              handle=int(sys.argv[1]), url=u, listitem=listitem, isFolder=folder, totalItems=l)              handle=int(sys.argv[1]), url=u, listitem=listitem, isFolder=folder, totalItems=l)
242    
243      if (endlist == True):      if (endlist == True):

Legend:
Removed from v.2601  
changed lines
  Added in v.3037

  ViewVC Help
Powered by ViewVC 1.1.20