def action(self, data):
if self.scid is None:
return
url = "%s/Stats" % (sctop.BASE_URL)
data.update({'est': self.estimateFinishTime})
data.update({'se': self.se, 'ep': self.ep})
data.update({'ver': sctop.addonInfo('version')})
try:
data.update({'state': bool(xbmc.getCondVisibility("!Player.Paused"))})
data.update({'ws': xbmcgui.Window(10000).getProperty('ws.ident'), 'vip': xbmcgui.Window(10000).getProperty('ws.vip')})
data.update({'vd': xbmcgui.Window(10000).getProperty('ws.days')})
data.update({'skin':xbmc.getSkinDir()})
if 'bitrate' in self.stream:
util.debug("[SC] action bitrate")
data.update({'bt': self.stream['bitrate']})
else:
util.debug("[SC] action no bitrate")
except:
pass
try:
if self.itemDuration > 0:
data.update({'dur': self.itemDuration})
except Exception:
pass
self.log("[SC] action: %s" % str(data))
url = self.parent.provider._url(url)
sctop.post_json(url, data, {'X-UID': sctop.uid})
评论列表
文章目录