tweets.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:script.matchcenter 作者: enen92 项目源码 文件源码
def onInit(self):
        xbmc.log(msg="[Match Center] Twitter cycle started", level=xbmc.LOGDEBUG)
        self.getControl(32540).setImage(os.path.join(addon_path,"resources","img","goal.png"))
        xbmc.executebuiltin("SetProperty(loading-script-matchcenter-twitter,1,home)")
        self.getTweets()
        xbmc.executebuiltin("ClearProperty(loading-script-matchcenter-twitter,Home)")
        i=0
        while self.isRunning:
            if (float(i*200)/(twitter_update_time*60*1000)).is_integer() and ((i*200)/(3*60*1000)) != 0:
                self.getTweets()
            xbmc.sleep(200)
            i += 1
        xbmc.log(msg="[Match Center] Twitter cycle stopped", level=xbmc.LOGDEBUG)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号