/[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 2600 by torben, Tue Jun 30 13:39:04 2015 UTC revision 2601 by torben, Mon Jul 13 14:33:39 2015 UTC
# Line 18  import xbmcplugin Line 18  import xbmcplugin
18  import urllib  import urllib
19  import urllib2  import urllib2
20    
21  #import pprint  # import pprint
22    
23  from xml.dom.minidom import parseString  from xml.dom.minidom import parseString
24    
# Line 26  __addon__ = xbmcaddon.Addon(id='plugin.v Line 26  __addon__ = xbmcaddon.Addon(id='plugin.v
26  __key__ = __addon__.getSetting('xbmckey').lower()  __key__ = __addon__.getSetting('xbmckey').lower()
27  __backend__ = "http://todic.dk/xbmc.php?xbmckey=" + __key__  __backend__ = "http://todic.dk/xbmc.php?xbmckey=" + __key__
28  fanartImage = os.path.join(__addon__.getAddonInfo('path'), 'movie_bg_blur.jpg')  fanartImage = os.path.join(__addon__.getAddonInfo('path'), 'movie_bg_blur.jpg')
29  datapath = xbmc.translatePath('special://profile/addon_data/plugin.video.todic/')  datapath = xbmc.translatePath(
30        'special://profile/addon_data/plugin.video.todic/')
31    
32  ADDON_PATH = __addon__.getAddonInfo('path')  ADDON_PATH = __addon__.getAddonInfo('path')
33  SkinMasterPath = os.path.join(ADDON_PATH, 'skins' ) + '/'  SkinMasterPath = os.path.join(ADDON_PATH, 'skins') + '/'
34  MySkinPath = (os.path.join(SkinMasterPath, '720p')) + '/'  MySkinPath = (os.path.join(SkinMasterPath, '720p')) + '/'
35  MySkin = 'main.xml'  MySkin = 'main.xml'
36    
37    
38  class TodicMovieDialog(xbmcgui.WindowXMLDialog):  class TodicMovieDialog(xbmcgui.WindowXMLDialog):
         def __new__(cls):  
                 return super(TodicMovieDialog, cls).__new__(cls, "main.xml", ADDON_PATH)  
39    
40          def __init__(self):      def __new__(cls):
41                  super(TodicMovieDialog, self).__init__()          return super(TodicMovieDialog, cls).__new__(cls, "main.xml", ADDON_PATH)
42    
43          def onClick( self, controlId ):      def __init__(self):
44                  print "OnClick: " + str(controlId)          super(TodicMovieDialog, self).__init__()
           
                 if (controlId == 50):  
                         self.close()  
                         play_real_video(self.url, self.name)  
45    
46                  if ( controlId == 98 ):      def onClick(self, controlId):
47                          self.close()          print "OnClick: " + str(controlId)
48    
49            if (controlId == 50):
50                self.close()
51                play_real_video(self.url, self.name)
52    
53          def onInit(self):          if (controlId == 98):
54                self.close()
55    
56                  print "ONINIT"      def onInit(self):
                 self.getControl( 1 ).setLabel( self.name);  
                 self.getControl( 2 ).setLabel( self.moviegroups )  
                 self.getControl( 3 ).setLabel( self.description )  
                 self.getControl( 10 ).setLabel( self.playlength )  
                 self.getControl( 11 ).setLabel( self.codecdetails )  
57    
58                    print "ONINIT"
59            self.getControl(1).setLabel(self.name)
60            self.getControl(2).setLabel(self.moviegroups)
61            self.getControl(3).setLabel(self.description)
62            self.getControl(10).setLabel(self.playlength)
63            self.getControl(11).setLabel(self.codecdetails)
64    
65                  orig_img_width = self.getControl(40).getWidth()          orig_img_width = self.getControl(40).getWidth()
66                  self.starwidth = ( float(self.imdbrating) / 10.0) * orig_img_width;          self.starwidth = (float(self.imdbrating) / 10.0) * orig_img_width
67                  self.getControl(40).setWidth( int(self.starwidth) )          self.getControl(40).setWidth(int(self.starwidth))
68    
69          def setUrl( self, url):      def setUrl(self, url):
70                  print "SETURL:" + url          print "SETURL:" + url
71                  self.url = url          self.url = url
72                  self.fetchClipDetails()          self.fetchClipDetails()
73    
74        def fetchClipDetails(self):
75            param1 = parse_parameter_string(self.url)
76    
77          def fetchClipDetails(self):          self.clipkey = param1["clipkey"]
78                  param1 = parse_parameter_string( self.url )          print "CLIPKEY:" + self.clipkey
79            detailurl = __backend__ + "&action=clipdetails&clipkey=" + self.clipkey
80    
81                  self.clipkey = param1[ "clipkey" ]          xml = open_url(detailurl)
                 print "CLIPKEY:" + self.clipkey  
                 detailurl = __backend__ + "&action=clipdetails&clipkey=" + self.clipkey  
           
                 xml = open_url(detailurl)  
82    
83                  doc = parseString(xml)          doc = parseString(xml)
84                  self.imdbrating = getText( doc.getElementsByTagName("imdbrating") )          self.imdbrating = getText(doc.getElementsByTagName("imdbrating"))
85                  self.moviegroups = getText( doc.getElementsByTagName("moviegroups") )          self.moviegroups = getText(doc.getElementsByTagName("moviegroups"))
86                  self.playlength = getText( doc.getElementsByTagName("playlength") )          self.playlength = getText(doc.getElementsByTagName("playlength"))
87                  self.codecdetails = getText( doc.getElementsByTagName("codecdetails") )          self.codecdetails = getText(doc.getElementsByTagName("codecdetails"))
88    
89        def setName(self, name):
90            self.name = name
91    
92        def setDescription(self, description):
93            self.description = description
   
         def setName( self, name ):  
                 self.name = name  
   
         def setDescription( self, description ):  
                 self.description = description  
94    
95    
96  class TodicPlayer(xbmc.Player):  class TodicPlayer(xbmc.Player):
97          def __init__(self, *args, **kwargs):  
98                  #xbmc.Player.__init__(selv,*args,**kwargs)      def __init__(self, *args, **kwargs):
99                  xbmc.Player.__init__(self, xbmc.PLAYER_CORE_MPLAYER )          # xbmc.Player.__init__(selv,*args,**kwargs)
100                  self.stopped = False          xbmc.Player.__init__(self, xbmc.PLAYER_CORE_MPLAYER)
101                  self.started = False          self.stopped = False
102                  print "[TodicPlayer] init"          self.started = False
103            print "[TodicPlayer] init"
104  #       @catchall        
105          def onPlayBackStarted(self):  #       @catchall
106                  self.started = True      def onPlayBackStarted(self):
107                  print "[TodicPlayer] : started"          self.started = True
108            print "[TodicPlayer] : started"
109  #               super.onPlayBackStarted()  #               super.onPlayBackStarted()
110    
111          def onPlayBackStopped(self):      def onPlayBackStopped(self):
112                  self.stopped = True          self.stopped = True
113                  print "[TodicPlayer] : stopped"          print "[TodicPlayer] : stopped"
114    
115          def onPlayBackEnded(self):      def onPlayBackEnded(self):
116                  self.stopped = True          self.stopped = True
117                  print "[TodicPlayer] : ended"          print "[TodicPlayer] : ended"
118    
119          def callbackLoop(self):      def callbackLoop(self):
120                  print "[Todic] startLoop"          print "[Todic] startLoop"
121                  while (self.stopped == False):          while (self.stopped == False):
122                          if (self.started == True ):              if (self.started == True):
123                                  print "[todic] " + str(self.getTime())                  print "[todic] " + str(self.getTime())
124                          xbmc.sleep(5000)              xbmc.sleep(5000)
125                            
126    
127  def getText2(nodelist):  def getText2(nodelist):
128          rc = []      rc = []
129          for node in nodelist:      for node in nodelist:
130                  if node.nodeType == node.TEXT_NODE:          if node.nodeType == node.TEXT_NODE:
131                          rc.append(node.data)              rc.append(node.data)
132                  else:          else:
133                          rc.append( getText(node.childNodes) )              rc.append(getText(node.childNodes))
134          return ''.join(rc)      return ''.join(rc)
135    
136    
137  def getText(nodelist):  def getText(nodelist):
138          if nodelist.length == 0:      if nodelist.length == 0:
139                  return ''          return ''
140          else:      else:
141                  if nodelist[0].childNodes.length == 0:          if nodelist[0].childNodes.length == 0:
142                          return ''              return ''
143                  else:          else:
144                          return nodelist[0].childNodes[0].nodeValue              return nodelist[0].childNodes[0].nodeValue
145    
146    
147  def SaveFile(path, data):  def SaveFile(path, data):
148          file = open(path,'w')      file = open(path, 'w')
149          file.write(data)      file.write(data)
150          file.close()      file.close()
151    
152    
153  def open_url(url):  def open_url(url):
154          req = urllib2.Request(url)      req = urllib2.Request(url)
155          content = urllib2.urlopen(req)      content = urllib2.urlopen(req)
156          data = content.read()      data = content.read()
157          content.close()      content.close()
158          return data      return data
   
 def rootMenu():  
   
         msg = open_url(__backend__ + "&action=messages")  
         msg = msg.strip()  
   
         if msg != "":  
                 dialog = xbmcgui.Dialog()                
                 dialog.ok('XBMC Todic', msg)  
159    
         buildList(__backend__, "", False) # call default list  
   
         # Adde xtra items to root menu  
         listitem = xbmcgui.ListItem(label = "Søg film ...", iconImage = 'DefaultFolder.png', thumbnailImage = 'DefaultFolder.png')  
         listitem.setProperty('Fanart_Image', fanartImage)  
   
         u = sys.argv[0] + "?mode=10&name="  
         ok = xbmcplugin.addDirectoryItem(handle = int(sys.argv[1]), url = u, listitem = listitem, isFolder = True)  
   
         #add search series  
         listitem = xbmcgui.ListItem(label = "Søg Serier ...", iconImage = 'DefaultFolder.png', thumbnailImage = 'DefaultFolder.png')  
         listitem.setProperty('Fanart_Image', fanartImage)  
   
         u = sys.argv[0] + "?mode=11&name="  
         ok = xbmcplugin.addDirectoryItem(handle = int(sys.argv[1]), url = u, listitem = listitem, isFolder = True)  
   
         xbmcplugin.endOfDirectory(int(sys.argv[1]))  
   
   
 def buildList(url,title, endlist=True):  
         print '[TODIC]:'+str(url)  
   
         link = open_url(url)  
         doc = parseString(link)  
         ty = doc.getElementsByTagName("meta")[0].getAttribute("type")  
         print '[TODIC]'+str(ty)  
   
         if ty == 'clipList':  
                 mode = '50'  
                 folder = False  
         else:  
                 mode = '1'  
                 folder = True  
160    
161    def rootMenu():
162    
163          entries = doc.getElementsByTagName("entry")      msg = open_url(__backend__ + "&action=messages")
164          l=len(entries)      msg = msg.strip()
         description = ''  
         for entry in entries:  
                 name =  getText( entry.getElementsByTagName("title") )  
                 url =  getText( entry.getElementsByTagName("url") )  
                 thumb = getText( entry.getElementsByTagName("cover") )  
                 description = getText( entry.getElementsByTagName("description") )  
                 playcount = getText( entry.getElementsByTagName("playcount") )  
   
                 if playcount == '':  
                         playcount = '0'  
                 playcount = int(playcount)  
165    
166        if msg != "":
167            dialog = xbmcgui.Dialog()
168            dialog.ok('XBMC Todic', msg)
169    
170        buildList(__backend__, "", False)  # call default list
171    
172        # Adde xtra items to root menu
173        listitem = xbmcgui.ListItem(
174            label="Søg film ...", iconImage='DefaultFolder.png', thumbnailImage='DefaultFolder.png')
175        listitem.setProperty('Fanart_Image', fanartImage)
176    
177        u = sys.argv[0] + "?mode=10&name="
178        ok = xbmcplugin.addDirectoryItem(
179            handle=int(sys.argv[1]), url=u, listitem=listitem, isFolder=True)
180    
181        # add search series
182        listitem = xbmcgui.ListItem(
183            label="Søg Serier ...", iconImage='DefaultFolder.png', thumbnailImage='DefaultFolder.png')
184        listitem.setProperty('Fanart_Image', fanartImage)
185    
186        u = sys.argv[0] + "?mode=11&name="
187        ok = xbmcplugin.addDirectoryItem(
188            handle=int(sys.argv[1]), url=u, listitem=listitem, isFolder=True)
189    
190        xbmcplugin.endOfDirectory(int(sys.argv[1]))
191    
192    
193    def buildList(url, title, endlist=True):
194        print '[TODIC]:' + str(url)
195    
196        link = open_url(url)
197        doc = parseString(link)
198        ty = doc.getElementsByTagName("meta")[0].getAttribute("type")
199        print '[TODIC]' + str(ty)
200    
201        if ty == 'clipList':
202            mode = '50'
203            folder = False
204        else:
205            mode = '1'
206            folder = True
207    
208        entries = doc.getElementsByTagName("entry")
209        l = len(entries)
210        description = ''
211        for entry in entries:
212            name = getText(entry.getElementsByTagName("title"))
213            url = getText(entry.getElementsByTagName("url"))
214            thumb = getText(entry.getElementsByTagName("cover"))
215            description = getText(entry.getElementsByTagName("description"))
216            playcount = getText(entry.getElementsByTagName("playcount"))
217    
218            if playcount == '':
219                playcount = '0'
220            playcount = int(playcount)
221    
222  ##              print "name:" + name  # print "name:" + name
223  #               print "url:" + url  #               print "url:" + url
224  #               print "thumb:" + thumb  #               print "thumb:" + thumb
225  #               print "description:" + description  #               print "description:" + description
226            listitem = xbmcgui.ListItem(
227                label=name, label2='test', iconImage='DefaultFolder.png', thumbnailImage=thumb)
228            listitem.setProperty('Fanart_Image', fanartImage)
229            if mode == '50':
230                infoLabels = {}
231                infoLabels['title'] = name
232                infoLabels['plot'] = description
233                infoLabels['playcount'] = playcount
234                listitem.setInfo('video', infoLabels)
235    
236            name = name.encode('UTF-8')
237            description = description.encode('UTF-8')
238    
239            u = sys.argv[0] + "?mode=" + urllib.quote(mode) + "&name=" + urllib.quote(
240                name) + "&url=" + urllib.quote(url) + "&description=" + urllib.quote(description)
241            ok = xbmcplugin.addDirectoryItem(
242                handle=int(sys.argv[1]), url=u, listitem=listitem, isFolder=folder, totalItems=l)
243    
244        if (endlist == True):
245            xbmcplugin.endOfDirectory(int(sys.argv[1]))
246    
247    
248    def play_video(url, name, description):
249        if (description == None or description == ""):
250            play_real_video(url, name)
251        else:
252            d = TodicMovieDialog()
253            d.setUrl(url)
254            d.setName(name)
255            d.setDescription(description)
256    
257            d.doModal()
                 listitem = xbmcgui.ListItem(label = name, label2='test', iconImage = 'DefaultFolder.png', thumbnailImage = thumb)  
                 listitem.setProperty('Fanart_Image', fanartImage)  
                 if mode == '50':  
                         infoLabels = {}  
                         infoLabels['title'] = name  
                         infoLabels['plot'] = description  
                         infoLabels['playcount'] = playcount  
                         listitem.setInfo('video', infoLabels)  
   
                 name = name.encode('UTF-8')  
                 description = description.encode('UTF-8')  
   
   
                 u = sys.argv[0] + "?mode=" + urllib.quote(mode) + "&name=" + urllib.quote(name) + "&url=" + urllib.quote(url) + "&description=" + urllib.quote(description)  
                 ok = xbmcplugin.addDirectoryItem(handle = int(sys.argv[1]), url = u, listitem = listitem, isFolder = folder, totalItems = l)  
   
         if (endlist == True):    
                 xbmcplugin.endOfDirectory(int(sys.argv[1]))  
   
   
   
   
 def play_video(url, name,description):  
         if (description == None or description == ""):  
                 play_real_video(url,name)  
         else:  
                 d = TodicMovieDialog()  
                 d.setUrl( url)  
                 d.setName( name )  
                 d.setDescription( description )  
   
                 d.doModal()  
258    
259    
260  def play_real_video(url, name):  def play_real_video(url, name):
261          xml = open_url(url)      xml = open_url(url)
262          print 'TODIC url: ' + str(url)      print 'TODIC url: ' + str(url)
263          print 'TODIC xml: '+ xml      print 'TODIC xml: ' + xml
264    
265          doc = parseString(xml)      doc = parseString(xml)
266          url = getText( doc.getElementsByTagName("url") )      url = getText(doc.getElementsByTagName("url"))
267    
268          subtitleurl = getText( doc.getElementsByTagName("subtitles") )      subtitleurl = getText(doc.getElementsByTagName("subtitles"))
269          subtitlesfile = os.path.join(datapath,'temp.srt')      subtitlesfile = os.path.join(datapath, 'temp.srt')
270    
271          #if old srt file exists delete it first      # if old srt file exists delete it first
272          if os.path.isfile(subtitlesfile):      if os.path.isfile(subtitlesfile):
273                  os.unlink(subtitlesfile)          os.unlink(subtitlesfile)
274    
275          print '[TODIC] subs: '+str(subtitleurl)      print '[TODIC] subs: ' + str(subtitleurl)
276          if len(subtitleurl) > 0:      if len(subtitleurl) > 0:
277                  subtitles = open_url(subtitleurl)          subtitles = open_url(subtitleurl)
278                  SaveFile(subtitlesfile, subtitles)          SaveFile(subtitlesfile, subtitles)
279                  print 'TODIC downloaded subtitles'          print 'TODIC downloaded subtitles'
280    
281        image = xbmc.getInfoImage('ListItem.Thumb')
282        listitem = xbmcgui.ListItem(
283          image = xbmc.getInfoImage( 'ListItem.Thumb' )          label=name, iconImage='DefaultVideo.png', thumbnailImage=image)
284          listitem = xbmcgui.ListItem(label = name , iconImage = 'DefaultVideo.png', thumbnailImage = image)      listitem.setInfo(type="Video", infoLabels={"Title": name})
285          listitem.setInfo( type = "Video", infoLabels={ "Title": name } )  
286        player = TodicPlayer(xbmc.PLAYER_CORE_AUTO)
287          player = TodicPlayer(xbmc.PLAYER_CORE_AUTO)      player.play(str(url), listitem)
288          player.play(str(url), listitem)  
289        # kan ikke loade subtitles hvis foerend playeren koerer
290          #kan ikke loade subtitles hvis foerend playeren koerer      count = 0
291          count = 0      while not xbmc.Player().isPlaying():
292          while not xbmc.Player().isPlaying():          xbmc.sleep(500)
293                  xbmc.sleep(500)          count += 1
294                  count += 1          if count > 10:
295                  if count > 10:              break
296                          break  
297        if xbmc.Player().isPlaying():
298            if os.path.isfile(subtitlesfile):
299          if xbmc.Player().isPlaying():              player.setSubtitles(subtitlesfile)
300                  if os.path.isfile(subtitlesfile):              print 'TODIC started subtitles'
301                          player.setSubtitles(subtitlesfile)          else:
302                          print 'TODIC started subtitles'              player.disableSubtitles()
                 else:  
                         player.disableSubtitles()  
303    
304  #       player.callbackLoop()  #       player.callbackLoop()
305    
306    
   
307  def search():  def search():
308          search = getUserInput("Todic Søgning")      search = getUserInput("Todic Søgning")
309    
310          if (search != None and search != ""):      if (search != None and search != ""):
311                  url = __backend__ + "&action=search&search=" + urllib.quote_plus(search)          url = __backend__ + "&action=search&search=" + \
312                urllib.quote_plus(search)
313    
314                  #print "[TODIC] Search start: " + search          # print "[TODIC] Search start: " + search
315                  #print "[TODIC] Search url: " + url          # print "[TODIC] Search url: " + url
316    
317                  buildList(url, "søgning")          buildList(url, "søgning")
318    
 def searchSeries():  
         search = getUserInput("Todic Serie Søgning")  
319    
320          if (search != None and search != ""):  def searchSeries():
321                  url = __backend__ + "&action=searchseries&search=" + urllib.quote_plus(search)      search = getUserInput("Todic Serie Søgning")
322    
323                  #print "[TODIC] Search start: " + search      if (search != None and search != ""):
324                  #print "[TODIC] Search url: " + url          url = __backend__ + "&action=searchseries&search=" + \
325                urllib.quote_plus(search)
326    
327                  buildList(url, "serie søgning")          # print "[TODIC] Search start: " + search
328            # print "[TODIC] Search url: " + url
329    
330                    buildList(url, "serie søgning")
331    
332    
333                    #=================================== Tool Box =======================================
 #=================================== Tool Box =======================================  
334  # shows a more userfriendly notification  # shows a more userfriendly notification
335  def showMessage(heading, message):  def showMessage(heading, message):
336          duration = 15*1000      duration = 15 * 1000
337          xbmc.executebuiltin('XBMC.Notification("%s", "%s", %s)' % ( heading, message, duration) )      xbmc.executebuiltin('XBMC.Notification("%s", "%s", %s)' %
338                            (heading, message, duration))
339    
340    
341  # raise a keyboard for user input  # raise a keyboard for user input
342  def getUserInput(title = "Input", default="", hidden=False):  def getUserInput(title="Input", default="", hidden=False):
343          result = None      result = None
344    
345        # Fix for when this functions is called with default=None
346        if not default:
347            default = ""
348    
349        keyboard = xbmc.Keyboard(default, title)
350        keyboard.setHiddenInput(hidden)
351        keyboard.doModal()
352    
353        if keyboard.isConfirmed():
354            result = keyboard.getText()
355    
356          # Fix for when this functions is called with default=None      return result
         if not default:  
                 default = ""  
                           
         keyboard = xbmc.Keyboard(default, title)  
         keyboard.setHiddenInput(hidden)  
         keyboard.doModal()  
                   
         if keyboard.isConfirmed():  
                 result = keyboard.getText()  
                   
         return result  
357    
358    
359  def get_params():  def get_params():
360          return parse_parameter_string( sys.argv[2] )      return parse_parameter_string(sys.argv[2])
361    
362  def parse_parameter_string( paramstring ):  
363          param=[]  def parse_parameter_string(paramstring):
364          if len(paramstring)>=2:      param = []
365                  params = paramstring      if len(paramstring) >= 2:
366                  cleanedparams=params.replace('?','')          params = paramstring
367                  if (params[len(params)-1]=='/'):          cleanedparams = params.replace('?', '')
368                          params=params[0:len(params)-2]          if (params[len(params) - 1] == '/'):
369                  pairsofparams=cleanedparams.split('&')              params = params[0:len(params) - 2]
370                  param={}          pairsofparams = cleanedparams.split('&')
371                  for i in range(len(pairsofparams)):          param = {}
372                          splitparams={}          for i in range(len(pairsofparams)):
373                          splitparams=pairsofparams[i].split('=')              splitparams = {}
374                          if (len(splitparams))==2:              splitparams = pairsofparams[i].split('=')
375                                  param[splitparams[0]]=splitparams[1]                                                  if (len(splitparams)) == 2:
376          return param                  param[splitparams[0]] = splitparams[1]
377        return param
378    
379    
380  params = get_params()  params = get_params()
# Line 387  mode = None Line 384  mode = None
384  description = None  description = None
385    
386  try:  try:
387          url = urllib.unquote_plus(params["url"])      url = urllib.unquote_plus(params["url"])
388  except:  except:
389          pass      pass
390  try:  try:
391          name = urllib.unquote_plus(params["name"])      name = urllib.unquote_plus(params["name"])
392  except:  except:
393          pass      pass
394  try:  try:
395          mode = int(params["mode"])      mode = int(params["mode"])
396  except:  except:
397          pass      pass
398  try:  try:
399          description = urllib.unquote_plus(params["description"])      description = urllib.unquote_plus(params["description"])
400  except:  except:
401          pass      pass
402    
403  try:  try:
404          open_url("http://todic.dk")      open_url("http://todic.dk")
405  except:  except:
406          showMessage("Fejl", "Kunne ikke forbinde til todic.dk")      showMessage("Fejl", "Kunne ikke forbinde til todic.dk")
407          exit()      exit()
408                            
409    
410  if url == 'refresh':  if url == 'refresh':
411          #xbmc.output("[tvserver] Container.Refresh") #20130418 xbmc.output virker ikke med XBMC12      # xbmc.output("[tvserver] Container.Refresh") #20130418 xbmc.output virker
412          xbmc.executebuiltin("Container.Refresh")      # ikke med XBMC12
413                xbmc.executebuiltin("Container.Refresh")
414    
415    
416  elif mode == None:  elif mode == None:
417          #build main menu      # build main menu
418          rootMenu()      rootMenu()
419          
420  elif mode == 1:  elif mode == 1:
421          #build list of movie starting letters      # build list of movie starting letters
422          buildList(url, name)      buildList(url, name)
423    
424  elif mode == 10:  elif mode == 10:
425          search()      search()
426    
427  elif mode == 11:  elif mode == 11:
428          searchSeries()      searchSeries()
           
   
 elif mode == 50:  
         play_video(url, name, description)  
   
   
429    
430    
431    elif mode == 50:
432        play_video(url, name, description)

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

  ViewVC Help
Powered by ViewVC 1.1.20