+def videoFinetuneWizard(*args, **kwargs):
+ # the way the video wizard tells this plugin that the "testcard" should be displayed is not so nice yet.
+ show_testcard = False
+ try:
+ from Components.config import config
+ show_testcard = config.misc.showtestcard.value
+ except KeyError:
+ print "not showing finetune wizard, config variable doesn't exist"
+ if show_testcard:
+ from VideoFinetune import VideoFinetune
+ config.misc.showtestcard.value = False
+ return VideoFinetune(*args, **kwargs)
+ else:
+ print "showtestcard is false"
+ from Screens.Screen import Screen
+ class Dummy(Screen):
+ skin = "<screen></screen>"
+ def __init__(self, session):
+ Screen.__init__(self, session)
+ self.close()
+ return Dummy(*args, **kwargs)
+