def begin(movieid=None, episodeid=None, dbtype=None, selection=False, args=None): e = experience.ExperiencePlayer().create() seqPath = None if not e.hasFeatures() or selection or movieid or episodeid or dbtype: if dbtype: if not e.addDBFeature(dbtype, args[0][5:]): return showNoFeaturesDialog() elif not e.addSelectedFeature(selection=selection, movieid=movieid, episodeid=episodeid): return showNoFeaturesDialog() elif len(e.features) < 2 and kodiutil.getSetting('ignore.playlist.single', True) and e.selectionAvailable(): if not e.addSelectedFeature(selection=True): return showNoFeaturesDialog() # We shouldn't get here if not kodiutil.getSetting('hide.queue.dialog', False) or (kodiutil.getSetting('hide.queue.dialog.single', False) and len(e.features) > 1): if not args or 'nodialog' not in args: e.features, seqPath = featureComfirmationDialog(e.features) if not e.features: return if seqPath: kodiutil.DEBUG_LOG('Loading selected sequence: {0}'.format(repr(seqPath))) else: seqPath = cvutil.getSequencePath(for_3D=e.has3D) kodiutil.DEBUG_LOG('Loading sequence for {0}: {1}'.format(e.has3D and '3D' or '2D', repr(seqPath))) if xbmc.getCondVisibility('Window.IsVisible(MovieInformation)'): xbmc.executebuiltin('Dialog.Close(MovieInformation)') e.start(seqPath)
def begin(movieid=None, episodeid=None, selection=False, args=None): e = experience.ExperiencePlayer().create() seqPath = None if not e.hasFeatures() or selection or movieid or episodeid: if not e.addSelectedFeature(selection=selection, movieid=movieid, episodeid=episodeid): return showNoFeaturesDialog() elif len(e.features) < 2 and kodiutil.getSetting('ignore.playlist.single', True) and e.selectionAvailable(): if not e.addSelectedFeature(selection=True): return showNoFeaturesDialog() # We shouldn't get here if not kodiutil.getSetting('hide.queue.dialog', False) or (kodiutil.getSetting('hide.queue.dialog.single', False) and len(e.features) > 1): if not args or 'nodialog' not in args: e.features, seqPath = featureComfirmationDialog(e.features) if not e.features: return if seqPath: kodiutil.DEBUG_LOG('Loading selected sequence: {0}'.format(repr(seqPath))) else: seqPath = cvutil.getSequencePath(for_3D=e.has3D) kodiutil.DEBUG_LOG('Loading sequence for {0}: {1}'.format(e.has3D and '3D' or '2D', repr(seqPath))) e.start(seqPath)
def updateSequenceSelection(self): if self.sequencePath: return seqPath, name = cvutil.getSequencePath(for_3D=self.queueHas3D(), with_name=True) if not seqPath: return self.getControl(self.SEQUENCE_SELECT_ID).setLabel(name)