Beispiel #1
0
def LISTSP5(murl):
        nrDomain = GetNewUrl();
        murl=nrDomain+'/latest.php'
        lurl=nrDomain+'/login2.php'
        net().http_POST(lurl,{'email':user,'password':passw})
        response = net().http_GET(murl)
        link = response.content
        if response.get_url() != murl:
                xbmc.executebuiltin("XBMC.Notification(Sorry!,Email or Password Incorrect,10000,"+smalllogo+")")
        main.addLink("[COLOR red]For Download Options, Bring up Context Menu Over Selected Link.[/COLOR]",'',art+'/link.png')
        match=re.compile("<br>(.+?) - <a[^>]+?href='(.+?)'>(.+?)</a>").findall(link)
        dialogWait = xbmcgui.DialogProgress()
        ret = dialogWait.create('Please wait until Movie list is cached.')
        totalLinks = len(match)
        loadedLinks = 0
        remaining_display = 'Movies loaded :: [B]'+str(loadedLinks)+' / '+str(totalLinks)+'[/B].'
        dialogWait.update(0, '[B]Will load instantly from now on[/B]',remaining_display)
        id = 1;
        for year,url,name in match:
                name=main.unescapes(name)
                if(year=='0'):
                        year='0000'  
                url=nrDomain+url
                main.addDown3(name+' [COLOR red]('+year+')[/COLOR]',url,58,'','',id)
                id += 1
                loadedLinks = loadedLinks + 1
                percent = (loadedLinks * 100)/totalLinks
                remaining_display = 'Movies loaded :: [B]'+str(loadedLinks)+' / '+str(totalLinks)+'[/B].'
                dialogWait.update(percent,'[B]Will load instantly from now on[/B]',remaining_display)
                if (dialogWait.iscanceled()):
                    return False    
        dialogWait.close()
        del dialogWait
        main.GA("HD","Starplay")
        main.VIEWS()
Beispiel #2
0
def AZLISTNB(murl):
    nrDomain = GetNewUrl()
    if selfAddon.getSetting("hide-download-instructions") != "true":
        main.addLink(
            "[COLOR red]For Download Options, Bring up Context Menu Over Selected Link.[/COLOR]",
            '', art + '/link.png')
    match = re.compile("href='(.+?)'>(.+?)</a>").findall(murl)
    dialogWait = xbmcgui.DialogProgress()
    ret = dialogWait.create('Please wait until Movie list is cached.')
    totalLinks = len(match)
    loadedLinks = 0
    remaining_display = 'Movies loaded :: [B]' + str(
        loadedLinks) + ' / ' + str(totalLinks) + '[/B].'
    dialogWait.update(0, '[B]Will load instantly from now on[/B]',
                      remaining_display)
    for url, name in match:
        name = fix_title(main.unescapes(name))
        url = nrDomain + url
        loadedLinks += 1
        name = name.decode('iso-8859-1').encode('utf8')
        main.addDown3(name, url, 58, '', '', loadedLinks)
        percent = (loadedLinks * 100) / totalLinks
        remaining_display = 'Movies loaded :: [B]' + str(
            loadedLinks) + ' / ' + str(totalLinks) + '[/B].'
        dialogWait.update(percent, '[B]Will load instantly from now on[/B]',
                          remaining_display)
        if (dialogWait.iscanceled()):
            return False
    dialogWait.close()
    del dialogWait
    main.GA("Noobroom", "List")
    main.VIEWS()
Beispiel #3
0
def AZLISTNB(murl):
    nrDomain = GetNewUrl()
    if selfAddon.getSetting("hide-download-instructions") != "true":
        main.addLink("[COLOR red]For Download Options, Bring up Context Menu Over Selected Link.[/COLOR]",'',art+'/link.png')
    match=re.compile("href='(.+?)'>(.+?)</a>").findall(murl)
    dialogWait = xbmcgui.DialogProgress()
    ret = dialogWait.create('Please wait until Movie list is cached.')
    totalLinks = len(match)
    loadedLinks = 0
    remaining_display = 'Movies loaded :: [B]'+str(loadedLinks)+' / '+str(totalLinks)+'[/B].'
    dialogWait.update(0, '[B]Will load instantly from now on[/B]',remaining_display)
    for url,name in match:
        name=fix_title(main.unescapes(name))
        url=nrDomain+url
        loadedLinks += 1
        name = name.decode('iso-8859-1').encode('utf8')
        main.addDown3(name,url,58,'','',loadedLinks)
        percent = (loadedLinks * 100)/totalLinks
        remaining_display = 'Movies loaded :: [B]'+str(loadedLinks)+' / '+str(totalLinks)+'[/B].'
        dialogWait.update(percent,'[B]Will load instantly from now on[/B]',remaining_display)
        if (dialogWait.iscanceled()):
            return False    
    dialogWait.close()
    del dialogWait
    main.GA("Noobroom","List")
    main.VIEWS()
Beispiel #4
0
def LISTSP5(xurl, retries = 1):
    try:
        nrDomain = GetNewUrl()
        murl=nrDomain+xurl
        setCookie(nrDomain)
        response = net().http_GET(murl)
    except:
        xbmc.executebuiltin("XBMC.Notification(Sorry!,Noobroom website is down,5000,"+smalllogo+")")
        return
    link = response.content
    link = link.decode('iso-8859-1').encode('utf8')
    if response.get_url() != murl or murl+'?ckattempt' in link:
        if os.path.exists(cookie_file):
            try: os.remove(cookie_file)
            except: pass
        if murl+'?ckattempt' in link:
            if retries:
                retries -= 1
                return LISTSP5('retry',retries)
        else:
            xbmc.executebuiltin("XBMC.Notification(Sorry!,Email or Password Incorrect,10000,"+smalllogo+")")
    if selfAddon.getSetting("hide-download-instructions") != "true":
        main.addLink("[COLOR red]For Download Options, Bring up Context Menu Over Selected Link.[/COLOR]",'',art+'/link.png')
    match=re.compile("<br>(.+?) - <a[^>]+?href='(.+?)'>(.+?)</a>").findall(link)
    dialogWait = xbmcgui.DialogProgress()
    ret = dialogWait.create('Please wait until Movie list is cached.')
    totalLinks = len(match)
    loadedLinks = 0
    remaining_display = 'Movies loaded :: [B]'+str(loadedLinks)+' / '+str(totalLinks)+'[/B].'
    dialogWait.update(0, '[B]Will load instantly from now on[/B]',remaining_display)
    for year,url,name in match:
        name=fix_title(main.unescapes(name))
        try:year=year.split('</b> - ')[1]
        except:pass
        if(year=='0'):
                year='0000'  
        url=nrDomain+url
        loadedLinks += 1
        main.addDown3(name+' [COLOR red]('+year+')[/COLOR]',url,58,'','',loadedLinks)
        percent = (loadedLinks * 100)/totalLinks
        remaining_display = 'Movies loaded :: [B]'+str(loadedLinks)+' / '+str(totalLinks)+'[/B].'
        dialogWait.update(percent,'[B]Will load instantly from now on[/B]',remaining_display)
        if (dialogWait.iscanceled()):
            return False    
    dialogWait.close()
    del dialogWait
    main.GA("Noobroom","List")
    main.VIEWS()
Beispiel #5
0
def LISTSP5(murl):
    nrDomain = GetNewUrl()
    murl = nrDomain + '/latest.php'
    lurl = nrDomain + '/login2.php'
    log_in = net().http_POST(lurl, {'email': user, 'password': passw}).content
    link = net().http_GET(murl).content
    r = re.findall('Membership by invitation only', link)
    if r:
        xbmc.executebuiltin(
            "XBMC.Notification(Sorry!,Email or Password Incorrect,10000," +
            smalllogo + ")")
    match = re.compile("<br>(.+?) - <a[^>]+?href='(.+?)'>(.+?)</a>").findall(
        link)
    dialogWait = xbmcgui.DialogProgress()
    ret = dialogWait.create('Please wait until Movie list is cached.')
    totalLinks = len(match)
    loadedLinks = 0
    remaining_display = 'Movies loaded :: [B]' + str(
        loadedLinks) + ' / ' + str(totalLinks) + '[/B].'
    dialogWait.update(0, '[B]Will load instantly from now on[/B]',
                      remaining_display)
    id = totalLinks
    for year, url, name in match:
        name = main.unescapes(name)
        if (year == '0'):
            year = '0000'
        url = nrDomain + url
        main.addDown3(name + ' [COLOR red](' + year + ')[/COLOR]', url, 58, '',
                      '', id)
        id -= 1
        loadedLinks = loadedLinks + 1
        percent = (loadedLinks * 100) / totalLinks
        remaining_display = 'Movies loaded :: [B]' + str(
            loadedLinks) + ' / ' + str(totalLinks) + '[/B].'
        dialogWait.update(percent, '[B]Will load instantly from now on[/B]',
                          remaining_display)
        if (dialogWait.iscanceled()):
            return False
    dialogWait.close()
    del dialogWait
    main.GA("HD", "Starplay")
    main.VIEWS()
def LISTSP5(murl):
        link=main.OPENURL(murl)
        main.addLink("[COLOR red]For Download Options, Bring up Context Menu Over Selected Link.[/COLOR]",'','')
        match=re.compile("<a href=\'(.+?)'.+?<font face='Calibri' color='.+?'>&nbsp;&nbsp;(.+?)</font>.+?Calibri'>([^<]+)</font></a><br>").findall(link)
        dialogWait = xbmcgui.DialogProgress()
        ret = dialogWait.create('Please wait until Movie list is cached.')
        totalLinks = len(match)
        loadedLinks = 0
        remaining_display = 'Movies loaded :: [B]'+str(loadedLinks)+' / '+str(totalLinks)+'[/B].'
        dialogWait.update(0,'[B]Loading....[/B]',remaining_display)
        for url,year,name in match:
                main.addDown3(name+' [COLOR red]('+year+')[/COLOR]',"http://87.98.161.165/"+url,58,'','')
        loadedLinks = loadedLinks + 1
        percent = (loadedLinks * 100)/totalLinks
        remaining_display = 'Movies loaded :: [B]'+str(loadedLinks)+' / '+str(totalLinks)+'[/B].'
        dialogWait.update(percent,'[B]Loading....[/B]',remaining_display)
        if (dialogWait.iscanceled()):
                return False    
        dialogWait.close()
        del dialogWait
        main.GA("HD","Starplay")
def LISTSP5(murl):
        link=main.OPENURL(murl)
        main.addLink("[COLOR red]For Download Options, Bring up Context Menu Over Selected Link.[/COLOR]",'',art+'/link.png')
        match=re.compile(" href='(.+?)'>(.+?)</a><br>(.+?) - <").findall(link)
        dialogWait = xbmcgui.DialogProgress()
        ret = dialogWait.create('Please wait until Movie list is cached.')
        totalLinks = len(match)
        loadedLinks = 0
        remaining_display = 'Movies loaded :: [B]'+str(loadedLinks)+' / '+str(totalLinks)+'[/B].'
        dialogWait.update(0, '[B]Will load instantly from now on[/B]',remaining_display)
        for url,name,year in match:
                name=name.replace(':','')
                main.addDown3(name+' [COLOR red]('+year+')[/COLOR]',"http://noobroom7.com/"+url,58,'','')
                loadedLinks = loadedLinks + 1
                percent = (loadedLinks * 100)/totalLinks
                remaining_display = 'Movies loaded :: [B]'+str(loadedLinks)+' / '+str(totalLinks)+'[/B].'
                dialogWait.update(percent,'[B]Will load instantly from now on[/B]',remaining_display)
                if (dialogWait.iscanceled()):
                    return False    
        dialogWait.close()
        del dialogWait
        main.GA("HD","Starplay")
        main.VIEWS()
Beispiel #8
0
def LISTSP5(xurl, retries=1):
    try:
        nrDomain = GetNewUrl()
        murl = nrDomain + xurl
        setCookie(nrDomain)
        response = net().http_GET(murl)
    except:
        xbmc.executebuiltin(
            "XBMC.Notification(Sorry!,Noobroom website is down,5000," +
            smalllogo + ")")
        return
    link = response.content
    link = link.decode('iso-8859-1').encode('utf8')
    if response.get_url() != murl or murl + '?ckattempt' in link:
        if os.path.exists(cookie_file):
            try:
                os.remove(cookie_file)
            except:
                pass
        if murl + '?ckattempt' in link:
            if retries:
                retries -= 1
                return LISTSP5('retry', retries)
        else:
            xbmc.executebuiltin(
                "XBMC.Notification(Sorry!,Email or Password Incorrect,10000," +
                smalllogo + ")")
    if selfAddon.getSetting("hide-download-instructions") != "true":
        main.addLink(
            "[COLOR red]For Download Options, Bring up Context Menu Over Selected Link.[/COLOR]",
            '', art + '/link.png')
    match = re.compile("<br>(.+?) - <a[^>]+?href='(.+?)'>(.+?)</a>").findall(
        link)
    dialogWait = xbmcgui.DialogProgress()
    ret = dialogWait.create('Please wait until Movie list is cached.')
    totalLinks = len(match)
    loadedLinks = 0
    remaining_display = 'Movies loaded :: [B]' + str(
        loadedLinks) + ' / ' + str(totalLinks) + '[/B].'
    dialogWait.update(0, '[B]Will load instantly from now on[/B]',
                      remaining_display)
    for year, url, name in match:
        name = fix_title(main.unescapes(name))
        try:
            year = year.split('</b> - ')[1]
        except:
            pass
        if (year == '0'):
            year = '0000'
        url = nrDomain + url
        loadedLinks += 1
        main.addDown3(name + ' [COLOR red](' + year + ')[/COLOR]', url, 58, '',
                      '', loadedLinks)
        percent = (loadedLinks * 100) / totalLinks
        remaining_display = 'Movies loaded :: [B]' + str(
            loadedLinks) + ' / ' + str(totalLinks) + '[/B].'
        dialogWait.update(percent, '[B]Will load instantly from now on[/B]',
                          remaining_display)
        if dialogWait.iscanceled(): break
    dialogWait.close()
    del dialogWait
    main.GA("Noobroom", "List")
    main.VIEWS()