--- misc/xbmc/plugin.video.todic/default.py 2013/01/18 09:44:30 1916 +++ misc/xbmc/plugin.video.todic/default.py 2013/01/18 11:36:20 1917 @@ -177,6 +177,10 @@ subtitleurl = getText( doc.getElementsByTagName("subtitles") ) subtitlesfile = os.path.join(datapath,'temp.srt') + #if old srt file exists delete it first + if os.path.isfile(subtitlesfile): + os.unlink(subtitlesfile) + print '[TODIC] subs: '+str(subtitleurl) if len(subtitleurl) > 0: subtitles = open_url(subtitleurl) @@ -205,6 +209,8 @@ if os.path.isfile(subtitlesfile): player.setSubtitles(subtitlesfile) print 'TODIC started subtitles' + else: + player.disableSubtitles() # player.callbackLoop()