예제 #1
0
def _ensure_settings():
    import os
    firstrun = os.path.join(plugin.addon.getAddonInfo("path"), ".firstrun")
    if not os.path.exists(firstrun):
        with open(firstrun, "w"):
            plugin.set_setting("base_tpb", "http://thepiratebay.org") # Properly set TPB for now
            plugin.notify("Please review your settings.")
            plugin.open_settings()
예제 #2
0
def index():
    import os
    firstrun = os.path.join(plugin.addon.getAddonInfo("path"), ".firstrun")
    if not os.path.exists(firstrun):
        with open(firstrun, "w"):
            # This doesn't get set properly
            plugin.set_setting("encryption", "1")
            plugin.open_settings()

    if PLATFORM["os"] not in ["android", "linux", "windows", "darwin"]:
        plugin.notify("Your system \"%(os)s_%(arch)s\" is not supported." %
                      PLATFORM,
                      delay=15000)

    for module in MODULES:
        yield {
            "label": module["name"],
            "thumbnail": module["image"],
            "path": plugin.url_for(module["view"]),
        }
예제 #3
0
파일: cmd.py 프로젝트: afedchin/xbmctorrent
def firstrun():
    clear_cache()
    plugin.notify("Please review your settings.")
    plugin.set_setting("firstrun", "true")
    plugin.open_settings()
예제 #4
0
def firstrun():
    clear_cache()
    plugin.notify("Please review your settings.")
    plugin.set_setting("firstrun", "true")
    plugin.open_settings()
예제 #5
0
파일: cmd.py 프로젝트: vizzah/xbmctorrent
def firstrun():
    plugin.notify("Please review your settings.")
    plugin.open_settings()