def get_backupfilename(self, promptfilename=False):
'''get the filename for the new backup'''
backupfile = "%s Skinbackup (%s)" % (
get_skin_name().capitalize(),
datetime.now().strftime('%Y-%m-%d %H.%M.%S'))
if promptfilename:
header = self.addon.getLocalizedString(32003)
backupfile = xbmcgui.Dialog().input(header, backupfile).decode("utf-8")
backupfile += ".zip"
return self.get_backuppath() + backupfile
backuprestore.py 文件源码
python
阅读 20
收藏 0
点赞 0
评论 0
评论列表
文章目录