Exemple #1
0
def VIEW_DIALOG(url):

    f = open(url, mode='r')
    msg = f.read()
    f.close()
    common.TextBoxes("%s" % msg)

    if url == RESET_NOTICE:
        return
Exemple #2
0
def check(url):

    REPO_FOLDER, INFO = url.split('|SPLIT|')

    if not os.path.exists(REPO_FOLDER):
        f = open(INFO, mode='r')
        msg = f.read()
        f.close()
        common.TextBoxes("%s" % msg)
        quit()
    else:
        return
Exemple #3
0
def DISPLAY_STORY(url):

    result = common.open_url(url)

    try:
        match = re.compile('<!-- CONTENT -->.+?<div (.+?)story_info">',
                           re.DOTALL).findall(result)
        string = str(match)
        match2 = re.compile('class="block(.+?)ass="',
                            re.DOTALL).findall(string)

        for item in match2:
            content = re.compile('_panel">(.+?)<div cl').findall(item)[0]
            display = str(content).replace('<!-- VOTES -->', '')
            #a = common.strip_tags(display)
            a = common.CLEANUP(display)
            common.TextBoxes("%s" % a)
    except:
        dialog = xbmcgui.Dialog()
        dialog.ok(
            'XNXX.com',
            'There was an error processing the request. Please try another link.'
        )
Exemple #4
0
    'special://home/addons/repository.xxxecho/addon.xml')
BASE_UPDATE = base64.b64decode(
    b'aHR0cHM6Ly9naXRodWIuY29tL2VjaG9jb2RlcmtvZGkvcmVwb3NpdG9yeS54eHhlY2hvL3Jhdy9tYXN0ZXIvemlwcy9wbHVnaW4udmlkZW8ueHh4LW8tZHVzL3BsdWdpbi52aWRlby54eHgtby1kdXMt'
)
BASE_REPO_UPDATE = base64.b64decode(
    b'aHR0cHM6Ly9naXRodWIuY29tL2VjaG9jb2RlcmtvZGkvcmVwb3NpdG9yeS54eHhlY2hvL3Jhdy9tYXN0ZXIvemlwcy9yZXBvc2l0b3J5Lnh4eGVjaG8vcmVwb3NpdG9yeS54eHhlY2hvLQ=='
)

SEND_TO_CHECK = REPO_FOLDER + '|SPLIT|' + REPO_INFO
checker.check(SEND_TO_CHECK)

if not os.path.exists(I_AGREE):
    f = open(TERMS, mode='r')
    msg = f.read()
    f.close()
    common.TextBoxes("%s" % msg)
    choice = xbmcgui.Dialog().yesno(
        AddonTitle,
        '[COLOR white]Do you agree to the terms and conditions of this addon?[/COLOR]',
        '',
        yeslabel='[COLOR lime]YES[/COLOR]',
        nolabel='[COLOR orangered]NO[/COLOR]')
    if choice == 1:
        f = open(INFO, mode='r')
        msg = f.read()
        f.close()
        common.TextBoxes("%s" % msg)
        dialog.ok(
            AddonTitle,
            "[COLOR pink]We can see this is the first time you have used XXX-O-DUS. The next prompt is important as it will allow you to enable the history section of the addon and it will also allow you to select the location you would like to be used to download videos.[/COLOR]"
        )