/[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 1916 by torben, Thu Jan 17 18:44:47 2013 UTC revision 1917 by torben, Fri Jan 18 11:36:20 2013 UTC
# Line 177  def play_video(url, name): Line 177  def play_video(url, name):
177          subtitleurl = getText( doc.getElementsByTagName("subtitles") )          subtitleurl = getText( doc.getElementsByTagName("subtitles") )
178          subtitlesfile = os.path.join(datapath,'temp.srt')          subtitlesfile = os.path.join(datapath,'temp.srt')
179    
180            #if old srt file exists delete it first
181            if os.path.isfile(subtitlesfile):
182                    os.unlink(subtitlesfile)
183    
184          print '[TODIC] subs: '+str(subtitleurl)          print '[TODIC] subs: '+str(subtitleurl)
185          if len(subtitleurl) > 0:          if len(subtitleurl) > 0:
186                  subtitles = open_url(subtitleurl)                  subtitles = open_url(subtitleurl)
# Line 205  def play_video(url, name): Line 209  def play_video(url, name):
209                  if os.path.isfile(subtitlesfile):                  if os.path.isfile(subtitlesfile):
210                          player.setSubtitles(subtitlesfile)                          player.setSubtitles(subtitlesfile)
211                          print 'TODIC started subtitles'                          print 'TODIC started subtitles'
212                    else:
213                            player.disableSubtitles()
214    
215  #       player.callbackLoop()  #       player.callbackLoop()
216    

Legend:
Removed from v.1916  
changed lines
  Added in v.1917

  ViewVC Help
Powered by ViewVC 1.1.20