def onInitialized(success):
if success:
channelList = database.getChannelList(onlyVisible=False)
xbmcvfs.mkdirs("special://profile/addon_data/script.tvguide.fullscreen/channel_logos/")
for channel in channelList:
from_file = channel.logo
regex = '[%s]' % re.escape('[]/\:')
xbmc.log(regex)
to_file = "special://profile/addon_data/script.tvguide.fullscreen/channel_logos/%s.png" % re.sub(regex,' ',channel.title)
xbmcvfs.copy(from_file,to_file)
database.close(onAutoplaysCleared)
else:
database.close()
channel_logos.py 文件源码
python
阅读 23
收藏 0
点赞 0
评论 0
评论列表
文章目录