/[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 3163 by torben, Mon Dec 5 20:22:35 2016 UTC revision 3208 by torben, Mon Sep 18 06:43:20 2017 UTC
# Line 3  Line 3 
3    
4  '''  '''
5      Todic plugin for XBMC      Todic plugin for XBMC
6      Version 0.1.5      Version 0.1.6
7  '''  '''
8    
9  import sys  import sys
# Line 24  from time import time Line 24  from time import time
24    
25  __addon__ = xbmcaddon.Addon(id='plugin.video.todic')  __addon__ = xbmcaddon.Addon(id='plugin.video.todic')
26  __key__ = __addon__.getSetting('xbmckey').lower()  __key__ = __addon__.getSetting('xbmckey').lower()
27    __entrypoint__ = __addon__.getSetting('entrypoint').lower()
28  __backend__ = "https://todic.dk/xbmc.php?xbmckey=" + __key__  __backend__ = "https://todic.dk/xbmc.php?xbmckey=" + __key__
29    
30    if __entrypoint__ == "alternative":
31            __backend__ = "https://alt.todic.dk/xbmc.php?xbmckey=" + key
32    
33    if __entrypoint__ == "testing":
34            __backend__ = "https://todic.dk/xbmc-beta.php?xbmckey=" + __key__
35            
36    
37    
38  fanartImage = os.path.join(__addon__.getAddonInfo('path'), 'movie_bg_blur.jpg')  fanartImage = os.path.join(__addon__.getAddonInfo('path'), 'movie_bg_blur.jpg')
39  datapath = xbmc.translatePath(  datapath = xbmc.translatePath(
40      'special://profile/addon_data/plugin.video.todic/')      'special://profile/addon_data/plugin.video.todic/')
# Line 350  def play_real_video(url, name, position) Line 360  def play_real_video(url, name, position)
360      listitem.setProperty('ResumeTime', '300')      listitem.setProperty('ResumeTime', '300')
361      listitem.setProperty('TotalTime', '3000')      listitem.setProperty('TotalTime', '3000')
362    
363      player = TodicPlayer(xbmc.PLAYER_CORE_AUTO)      player = TodicPlayer()
364      player.play(str(url), listitem)      player.play(str(url), listitem)
365    
366      # kan ikke loade subtitles hvis foerend playeren koerer      # kan ikke loade subtitles hvis foerend playeren koerer

Legend:
Removed from v.3163  
changed lines
  Added in v.3208

  ViewVC Help
Powered by ViewVC 1.1.20