def getCustomStreamUrls(success):
if success:
stream_urls = database.getCustomStreamUrls()
file_name = 'special://profile/addon_data/script.tvguide.fullscreen/custom_stream_urls.ini'
f = xbmcvfs.File(file_name,'wb')
for (name,stream) in stream_urls:
write_str = "%s=%s\n" % (name,stream)
f.write(write_str.encode("utf8"))
f.close()
xbmcgui.Dialog().notification(ADDON.getAddonInfo('name'), 'Exported channel mappings')
else:
database.close()
评论列表
文章目录