本文整理汇总了Python中Plugins.Extensions.CDInfo.plugin.Query.scan方法的典型用法代码示例。如果您正苦于以下问题:Python Query.scan方法的具体用法?Python Query.scan怎么用?Python Query.scan使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Plugins.Extensions.CDInfo.plugin.Query
的用法示例。
在下文中一共展示了Query.scan方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: playAudioCD
# 需要导入模块: from Plugins.Extensions.CDInfo.plugin import Query [as 别名]
# 或者: from Plugins.Extensions.CDInfo.plugin.Query import scan [as 别名]
def playAudioCD(self):
from enigma import eServiceReference
from Plugins.Extensions.CDInfo.plugin import Query
if len(self.cdAudioTrackFiles):
self.playlist.clear()
self.savePlaylistOnExit = False
self.isAudioCD = True
for file in self.cdAudioTrackFiles:
ref = eServiceReference(4097, 0, file)
self.playlist.addFile(ref)
cdinfo = Query(self)
cdinfo.scan()
self.changeEntry(0)
self.switchToPlayList()
示例2: playAudioCD
# 需要导入模块: from Plugins.Extensions.CDInfo.plugin import Query [as 别名]
# 或者: from Plugins.Extensions.CDInfo.plugin.Query import scan [as 别名]
def playAudioCD(self):
from enigma import eServiceReference
if len(self.cdAudioTrackFiles):
self.playlist.clear()
self.savePlaylistOnExit = False
self.isAudioCD = True
for x in self.cdAudioTrackFiles:
ref = eServiceReference(4097, 0, x)
self.playlist.addFile(ref)
try:
from Plugins.Extensions.CDInfo.plugin import Query
cdinfo = Query(self)
cdinfo.scan()
except ImportError:
pass # we can live without CDInfo
self.changeEntry(0)
self.switchToPlayList()