--- misc/xbmc/plugin.video.todic/default.py 2016/12/01 14:40:49 3159 +++ misc/xbmc/plugin.video.todic/default.py 2017/09/18 06:43:20 3208 @@ -3,7 +3,7 @@ ''' Todic plugin for XBMC - Version 0.1.3 + Version 0.1.6 ''' import sys @@ -24,7 +24,17 @@ __addon__ = xbmcaddon.Addon(id='plugin.video.todic') __key__ = __addon__.getSetting('xbmckey').lower() +__entrypoint__ = __addon__.getSetting('entrypoint').lower() __backend__ = "https://todic.dk/xbmc.php?xbmckey=" + __key__ + +if __entrypoint__ == "alternative": + __backend__ = "https://alt.todic.dk/xbmc.php?xbmckey=" + key + +if __entrypoint__ == "testing": + __backend__ = "https://todic.dk/xbmc-beta.php?xbmckey=" + __key__ + + + fanartImage = os.path.join(__addon__.getAddonInfo('path'), 'movie_bg_blur.jpg') datapath = xbmc.translatePath( 'special://profile/addon_data/plugin.video.todic/') @@ -102,7 +112,7 @@ def __init__(self, *args, **kwargs): # xbmc.Player.__init__(selv,*args,**kwargs) - xbmc.Player.__init__(self, xbmc.PLAYER_CORE_MPLAYER) + xbmc.Player.__init__(self) self.stopped = False self.started = False self.playingPosition = 0.0 @@ -350,7 +360,7 @@ listitem.setProperty('ResumeTime', '300') listitem.setProperty('TotalTime', '3000') - player = TodicPlayer(xbmc.PLAYER_CORE_AUTO) + player = TodicPlayer() player.play(str(url), listitem) # kan ikke loade subtitles hvis foerend playeren koerer @@ -368,7 +378,7 @@ player.setSubtitles(subtitlesfile) print '[Todic] started subtitles' else: - player.disableSubtitles() + player.showSubtitles(False) if (position > 0):