Ejemplo n.º 1
0
def Start():
    ObjectContainer.art = R(PLUGIN_ART)
    ObjectContainer.title1 = PLUGIN_NAME
    DirectoryObject.thumb = R(PLUGIN_ICON)
    DirectoryObject.art = R(PLUGIN_ART)
    PopupDirectoryObject.thumb = R(PLUGIN_ICON)
    PopupDirectoryObject.art = R(PLUGIN_ART)

    if not Singleton.acquire():
        log.warn("Unable to acquire plugin instance")

    # Complete logger initialization
    LoggerManager.setup(storage=True)

    # Store current proxy details
    Dict["proxy_host"] = Prefs["proxy_host"]

    Dict["proxy_username"] = Prefs["proxy_username"]
    Dict["proxy_password"] = Prefs["proxy_password"]

    # Store current language
    Dict["language"] = Prefs["language"]

    # Start plugin
    m = Main()
    m.start()
Ejemplo n.º 2
0
def Start():
    ObjectContainer.art = R(PLUGIN_ART)
    ObjectContainer.title1 = PLUGIN_NAME
    DirectoryObject.thumb = R(PLUGIN_ICON)
    DirectoryObject.art = R(PLUGIN_ART)
    PopupDirectoryObject.thumb = R(PLUGIN_ICON)
    PopupDirectoryObject.art = R(PLUGIN_ART)

    if not Singleton.acquire():
        log.warn('Unable to acquire plugin instance')

    # Complete logger initialization
    LoggerManager.setup(storage=True)

    # Store current proxy details
    Dict['proxy_host'] = Prefs['proxy_host']

    Dict['proxy_username'] = Prefs['proxy_username']
    Dict['proxy_password'] = Prefs['proxy_password']

    # Store current language
    Dict['language'] = Prefs['language']

    # Start plugin
    m = Main()
    m.start()
Ejemplo n.º 3
0
def Start():
    ObjectContainer.art = R(ART)
    ObjectContainer.title1 = NAME
    DirectoryObject.thumb = R(ICON)
    DirectoryObject.art = R(ART)

    if not Singleton.acquire():
        log.warn('Unable to acquire plugin instance')

    main = Main()
    main.start()
Ejemplo n.º 4
0
def Start():
    ObjectContainer.art = R(ART)
    ObjectContainer.title1 = NAME
    DirectoryObject.thumb = R(ICON)
    DirectoryObject.art = R(ART)
    PopupDirectoryObject.thumb = R(ICON)
    PopupDirectoryObject.art = R(ART)

    if not Singleton.acquire():
        log.warn('Unable to acquire plugin instance')

    # Complete logger initialization
    LoggerManager.setup(storage=True)

    # Start plugin
    m = Main()
    m.start()