本文整理汇总了Python中Screens.InfoBarGenerics.InfoBarCueSheetSupport._InfoBarCueSheetSupport__getCuesheet方法的典型用法代码示例。如果您正苦于以下问题:Python InfoBarCueSheetSupport._InfoBarCueSheetSupport__getCuesheet方法的具体用法?Python InfoBarCueSheetSupport._InfoBarCueSheetSupport__getCuesheet怎么用?Python InfoBarCueSheetSupport._InfoBarCueSheetSupport__getCuesheet使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Screens.InfoBarGenerics.InfoBarCueSheetSupport
的用法示例。
在下文中一共展示了InfoBarCueSheetSupport._InfoBarCueSheetSupport__getCuesheet方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: uploadCuesheet
# 需要导入模块: from Screens.InfoBarGenerics import InfoBarCueSheetSupport [as 别名]
# 或者: from Screens.InfoBarGenerics.InfoBarCueSheetSupport import _InfoBarCueSheetSupport__getCuesheet [as 别名]
def uploadCuesheet(self):
try:
# Always check for saving the last marker
if config.EMC.movie_save_lastplayed.value is True:
self.__saveOldLast()
# Is there native cuesheet support
cue = InfoBarCueSheetSupport._InfoBarCueSheetSupport__getCuesheet(self)
if cue is None or (cue and not cue.getCutList()):
# No native cuesheet support
# Update local cut list, maybe there is a newer one
#TODO to be tested
#self.__readCutFile(True)
if hasattr(self, "service") and self.service:
path = self.service.getPath()
self.__newPath(path)
self.__writeCutFile()
else:
# Native cuesheet support
if isDreamOS and self.service:
if self.service.getPath().rsplit('.')[-1] == "mkv":
path = self.service.getPath()
self.__newPath(path)
self.__writeCutFile()
else:
cue.setCutList(self.cut_list)
else:
cue.setCutList(self.cut_list)
except Exception, e:
emcDebugOut("[CUTS] uploadCuesheet exception:" + str(e))