コード例 #1
0
ファイル: plugin.py プロジェクト: OpenVuPlus/dvbapp-plugin
def Plugins(**kwargs):
	try:
		from Screens.MovieSelection import setPreferredTagEditor
		setPreferredTagEditor(TagEditor)
	except Exception:
		pass
	return PluginDescriptor(name = "TagEditor", description = _("edit tags..."), where = PluginDescriptor.WHERE_MOVIELIST, fnc = main)
コード例 #2
0
ファイル: plugin.py プロジェクト: zilizila/enigma2-plugins
def Plugins(**kwargs):
	try:
		from Screens.MovieSelection import setPreferredTagEditor
		setPreferredTagEditor(TagEditor)
	except Exception:
		pass
	# TRANSLATORS: this is the string used in the movie context menu for TagEditor
	return PluginDescriptor(name = "TagEditor", description = _("edit tags"), where = PluginDescriptor.WHERE_MOVIELIST, fnc = main, needsRestart = False)
コード例 #3
0
ファイル: plugin.py プロジェクト: Johnny-Dopp/enigma2-plugins
def Plugins(**kwargs):
	try:
		from Screens.MovieSelection import setPreferredTagEditor
		setPreferredTagEditor(TagEditor)
	except Exception:
		pass
	# TRANSLATORS: this is the string used in the movie context menu for TagEditor
	return PluginDescriptor(name = "TagEditor", description = _("edit tags"), where = PluginDescriptor.WHERE_MOVIELIST, fnc = main, needsRestart = False)
コード例 #4
0
def Plugins(**kwargs):
    if not config.AdvancedMovieSelection.ml_disable.value:
        try:
            from Screens.TagEditor import TagEditor
        except ImportError:
            # only set adv TagEditor if the internal TagEditor not available
            from .TagEditor import TagEditor
            try:
                from Screens.MovieSelection import setPreferredTagEditor
                setPreferredTagEditor(TagEditor)
            except Exception as e:
                print(e)

    try:
        if config.AdvancedMovieSelection.debug.value:
            config.AdvancedMovieSelection.debug.value = False
            config.AdvancedMovieSelection.debug.save()
        if not config.AdvancedMovieSelection.ml_disable.value and config.AdvancedMovieSelection.useseekbar.value:
            from .Seekbar import Seekbar
    except Exception as e:
        print(e)

    descriptors = []
    if not config.AdvancedMovieSelection.ml_disable.value:
        descriptors.append(
            PluginDescriptor(name=_("Advanced Movie Selection"),
                             where=PluginDescriptor.WHERE_SESSIONSTART,
                             description=_("Alternate Movie Selection"),
                             fnc=sessionstart,
                             needsRestart=True))
        descriptors.append(
            PluginDescriptor(name=_("Advanced Movie Selection"),
                             where=PluginDescriptor.WHERE_EXTENSIONSMENU,
                             description=_("Alternate Movie Selection"),
                             fnc=pluginOpen))
        descriptors.append(
            PluginDescriptor(
                name=_("Move Copy Progress"),
                where=PluginDescriptor.WHERE_EXTENSIONSMENU,
                description=_("Show progress of move or copy job"),
                fnc=openProgress))
    descriptors.append(
        PluginDescriptor(name=_("Setup Advanced Movie Selection"),
                         where=PluginDescriptor.WHERE_PLUGINMENU,
                         description=_("Alternate Movie Selection"),
                         fnc=pluginMenu,
                         needsRestart=True))
    descriptors.append(
        PluginDescriptor(where=PluginDescriptor.WHERE_MENU,
                         description=_("Alternate Movie Selection"),
                         fnc=Setup,
                         needsRestart=True))

    # descriptors.append(PluginDescriptor(name=_("TMDb Info"), where=PluginDescriptor.WHERE_EVENTINFO, description=_("TMDb Info"), fnc=tmdbInfo))
    # descriptors.append(PluginDescriptor(name=_("TVDb Info"), where=PluginDescriptor.WHERE_EVENTINFO, description=_("TVDb Info"), fnc=tvdbInfo))
    return descriptors
コード例 #5
0
def Plugins(**kwargs):
    try:
        from Screens.MovieSelection import setPreferredTagEditor
        setPreferredTagEditor(TagEditor)
    except Exception:
        pass
    return PluginDescriptor(name="TagEditor",
                            description=_("edit tags..."),
                            where=PluginDescriptor.WHERE_MOVIELIST,
                            fnc=main)
コード例 #6
0
def Plugins(**kwargs):
    try:
        if config.AdvancedMovieSelection.debug.value:
            config.AdvancedMovieSelection.debug.value = False
            config.AdvancedMovieSelection.debug.save() 
        if not config.AdvancedMovieSelection.ml_disable.value:
            from Screens.MovieSelection import setPreferredTagEditor
            setPreferredTagEditor(TagEditor)
        if not config.AdvancedMovieSelection.ml_disable.value and config.AdvancedMovieSelection.useseekbar.value:
            from Seekbar import Seekbar
    except Exception, e:
        print e
コード例 #7
0
def Plugins(**kwargs):
    try:
        from Screens.TagEditor import TagEditor as NewTagEditor
    except ImportError:
        # disable TagEditor plugin if the new internal TagEditor is available
        try:
            from Screens.MovieSelection import setPreferredTagEditor
            setPreferredTagEditor(TagEditor)
        except Exception:
            pass
        # TRANSLATORS: this is the string used in the movie context menu for TagEditor
        return PluginDescriptor(name="TagEditor",
                                description=_("edit tags"),
                                where=PluginDescriptor.WHERE_MOVIELIST,
                                fnc=main,
                                needsRestart=False)
    return []