Exemple #1
0
def TVIndex2(url,name): ################# TV TAG Index #################
        link=main.OPEN_URL(url)
        link=link.replace('\r','').replace('\n','').replace('\t','').replace(' ','').replace('\\','')
        match = re.findall('src="http://www.thedarewall.com/tv/templates/svarog/timthumb.php[?]src=([^"]*)&amp;w=[^"]*&amp;h=[^"]*&amp;zc=1" alt=" "/>            </a>                        </div>                <h5>                                <a class="link" href="([^"]*)" title="([^"]*)">[^"]*</a>',link)
        dialogWait = xbmcgui.DialogProgress()
        ret = dialogWait.create('Please wait until Show list is cached.')
        totalLinks = len(match)
        loadedLinks = 0
        remaining_display = 'Tv Episodes Loaded :: [B]'+str(loadedLinks)+' / '+str(totalLinks)+'[/B].'
        dialogWait.update(0, '[B]Will load instantly from now on[/B]',remaining_display)
        for thumb,url,name in match:
                name=name.replace('\r','').replace('\n','').replace('\t','').replace('&nbsp;','').replace('\\','').replace('\xe2\x80\x99',"'").replace('\xe2\x80\x93','-').replace('\xe2\x80\x94','').replace('&-','-')
                #main.addInfo(name,url,7,thumb,'','')
                main.addDirTE(name,url,7,thumb,'','','','','')
                loadedLinks = loadedLinks + 1
                percent = (loadedLinks * 100)/totalLinks
                remaining_display = 'Tv Episodes 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
        
        nextpage=re.compile('<li><a href="([^"]*)">&raquo;</a></li> </ul></div><form method="post"').findall(link)
        for url in nextpage:
                main.addDir('[COLOR blue]Next Page -> [/COLOR]',url,3,art+'/next.png')
                xbmcplugin.setContent(int(sys.argv[1]), 'Tv-Shows')                 
Exemple #2
0
def Episodes(url, name):  ################# TV Episodes #################
    link = main.OPEN_URL(url)
    link = link.replace('\r', '').replace('\n', '').replace('\t', '').replace(
        '&nbsp;', '').replace('\\', '')
    match = re.findall(
        'src="http://www.thedarewall.com/tv/templates/svarog/timthumb.php[?]src=([^"]*)&amp;w=[^"]*&amp;h=[^"]*&amp;zc=1" alt=" " style=.+?<h5 class="left">                <a class="link" href="([^>]*)" title="(.+?)</a>',
        link)
    dialogWait = xbmcgui.DialogProgress()
    ret = dialogWait.create('Please wait until Show list is cached.')
    totalLinks = len(match)
    loadedLinks = 0
    remaining_display = 'Tv Episodes loaded :: [B]' + str(
        loadedLinks) + ' / ' + str(totalLinks) + '[/B].'
    dialogWait.update(0, '[B]Will load instantly from now on[/B]',
                      remaining_display)
    for thumb, url, name in match:
        name = name.replace('\r',
                            '').replace('\n', '').replace('\t', '').replace(
                                '&nbsp;', '').replace('\\',
                                                      '').replace('">', " ")
        main.addInfo(name, url, 75, thumb, '', '')
        loadedLinks = loadedLinks + 1
        percent = (loadedLinks * 100) / totalLinks
        remaining_display = 'Tv Episodes 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

    xbmcplugin.setContent(int(sys.argv[1]), 'Tv-Shows')
Exemple #3
0
def TVGenres(url,name): ################# TV Genre List #################
        link=main.OPEN_URL(url)
        link=link.replace('\r','').replace('\n','').replace('\t','').replace('&nbsp;','').replace('\\','')
        match = re.findall('<a href="http://www.thedarewall.com/tv/tv-categories/([^"]*)">([^"]*)</a>',link)
        for url,name in match:
                url = 'http://www.thedarewall.com/tv/tv-categories/' + url + '/abc'
                main.addDir(name,url,5,'')
Exemple #4
0
def SearchResults(url):
        link=main.OPEN_URL(url)
        link=link.replace('\r','').replace('\n','').replace('\t','').replace('&nbsp;','').replace('\\','').replace('\xe2\x80\xa6','...').replace('&#8211;','-').replace('#038;','').replace('&#039;',"'")
        match = re.findall('class="view_img">.+?<a href="([^"]*?)" class="spec-border-ie" title="">.+?<img class="img-preview spec-border show-thumbnail"  src="http://www.thedarehub.com/tv/templates/svarog/timthumb.php[?]src=([^"]*?)&amp;w=130&amp;h=190&amp;zc=1" alt=" " />.+?<h5>.+?<a class="link" href=".+?" title=".+?">([^"]*?)</a>',link)
        dialogWait = xbmcgui.DialogProgress()
        ret = dialogWait.create('Please wait while Search is cached.')
        totalLinks = len(match)
        loadedLinks = 0
        remaining_display = 'Search Results loaded :: [B]'+str(loadedLinks)+' / '+str(totalLinks)+'[/B].'
        dialogWait.update(0, '[B]Will load instantly from now on[/B]',remaining_display)
        for url,thumb,name in match:
                name=name.replace('\r','').replace('\n','').replace('\t','').replace('&nbsp;','').replace('\\','').replace('\xe2\x80\x99',"'").replace('\xe2\x80\x93','-').replace('\xe2\x80\x94','').replace('&-','-').replace('&#039;',"'")
                main.addDirTE(name,url,7,thumb,'','','','','')
                loadedLinks = loadedLinks + 1
                percent = (loadedLinks * 100)/totalLinks
                remaining_display = 'Search Results 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    

        nextpage=re.compile("<a href='([^>]+)' class='nextpostslink'>></a>").findall(link)
        for url in nextpage:
                name = '[COLOR green] Next Page -> [/COLOR]'
                main.addDir(name,url,220,'')
Exemple #5
0
def Premiers(url,name): ################# Premiers #################
        link=main.OPEN_URL(url)
        link=link.replace('\r','').replace('\n','').replace('\t','').replace('&nbsp;','').replace('\\','')
        match = re.findall('<a href="([^"]*)" style=".+?background-image: url([^"]*);".+?><h2>([^"]*)</h2>',link)
        dialogWait = xbmcgui.DialogProgress()
        ret = dialogWait.create('Please wait until Show list is cached.')
        totalLinks = len(match)
        loadedLinks = 0
        remaining_display = 'Tv Episodes loaded :: [B]'+str(loadedLinks)+' / '+str(totalLinks)+'[/B].'
        dialogWait.update(0, '[B]Will load instantly from now on[/B]',remaining_display)
        for url,thumb,name in match:
                name=name.replace('\r','').replace('\n','').replace('\t','').replace('&nbsp;','').replace('\\','').replace('">'," ")
                thumb = base_url + thumb
                url = 'http://www.thedarewall.com/' + url
                main.addDirTE(name,url,7,thumb,'','','','','')
                loadedLinks = loadedLinks + 1
                percent = (loadedLinks * 100)/totalLinks
                remaining_display = 'Tv Episodes 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
        
        xbmcplugin.setContent(int(sys.argv[1]), 'Tv-Shows')        
Exemple #6
0
def List2(url):
    link = main.OPEN_URL(url)
    match = re.compile(
        'class="contentarchivetime">([^"]*)</div><div class="contentarchivetitle"><a href="([^"]*)" title=".+?">([^"]*)</a></div>'
    ).findall(link)
    dialogWait = xbmcgui.DialogProgress()
    ret = dialogWait.create('Please wait until Show list is cached.')
    totalLinks = len(match)
    loadedLinks = 0
    remaining_display = 'Episodes loaded :: [B]' + str(
        loadedLinks) + ' / ' + str(totalLinks) + '[/B].'
    dialogWait.update(0, '[B]Will load instantly from now on[/B]',
                      remaining_display)
    for date, url, name in match:
        name = name.replace('&#8211;', ' - ').replace('&#039;', "'")
        #main.addPlayTE(name+' [COLOR red]'+date+'[/COLOR]',url,5,'','','','','','')
        main.addDirTE(name + ' [COLOR red]' + date + '[/COLOR]', url, 865, '',
                      '', '', '', '', '')
        loadedLinks = loadedLinks + 1
        percent = (loadedLinks * 100) / totalLinks
        remaining_display = 'Episodes 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

    paginate = re.compile(
        '="nextpostslink" rel="next" href="([^"]*)">&raquo;</a>').findall(link)
    if paginate:
        xurl = paginate[0]
        main.addDir('[COLOR blue]Next Page' + '[/COLOR]', xurl, 864,
                    art + '/next2.png')
Exemple #7
0
def TVIndex(url): #################  TV Index #################
        link=main.OPEN_URL(url)
        link=link.replace('\r','').replace('\n','').replace('\t','').replace('&nbsp;','').replace('\\','')
        match = re.findall('<img class="img-preview spec-border"  src="([^"]*?)" alt=" " style="background.+?<a class="link" href="([^"]*?)" title=".+?">([^"]*?)</a>.+?</h5><p class="left">([^"]*?)</p>',link)
        dialogWait = xbmcgui.DialogProgress()
        ret = dialogWait.create('Please wait until Show list is cached.')
        totalLinks = len(match)
        loadedLinks = 0
        remaining_display = 'Latest Episodes Loaded :: [B]'+str(loadedLinks)+' / '+str(totalLinks)+'[/B].'
        dialogWait.update(0, '[B]Will load instantly from now on[/B]',remaining_display)
        for thumb,url,name,season in match:
                name=name.replace('\r','').replace('\n','').replace('\t','').replace('&nbsp;','').replace('\\','').replace('\xe2\x80\x99',"'").replace('\xe2\x80\x93','-').replace('\xe2\x80\x94','').replace('&-','-')
                #main.addInfo(name+ ' ' + season,url,75,thumb,'','')
                main.addDirTE(name+ ' ' + season,url,75,thumb,'','','','','')
                loadedLinks = loadedLinks + 1
                percent = (loadedLinks * 100)/totalLinks
                remaining_display = 'Latest Episodes 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
        
        nextpage=re.compile('><a href="([^"]*?)">&raquo;</a></li>             </ul>        </div>        <div class="show_all_btn"><ul class="pagination"><li>').findall(link)
        for url in nextpage:
                main.addDir('[COLOR blue]Next Page -> [/COLOR]',url,1,art+'/next.png')
                xbmcplugin.setContent(int(sys.argv[1]), 'Tv-Shows')  
Exemple #8
0
def TvSeasons(url,name): ################# TV Seasons #################
        link=main.OPEN_URL(url)
        link=link.replace('\r','').replace('\n','').replace('\t','').replace('&nbsp;','').replace('\\','')
        match = re.findall('><a href=\'([^>]*)\'>Season ([0-9]*)</a>',link)
        for url,name in match:
                name = 'Season ' +name
                main.addDir(name,url,8,'')
                xbmcplugin.setContent(int(sys.argv[1]), 'Tv-Shows')
Exemple #9
0
def OPEN_URL(url):
  if settings.getSetting('cache_enable') == 'true':
      response=main.OPEN_URL(url)
      req=urllib2.Request(url)
      req.add_header('User-Agent','Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3')
      #response=urllib2.urlopen(req)
      response=main.OPEN_URL(url)
      link=response
      #link=response.read()
      #response.close()
      return link
  else:
      req=urllib2.Request(url)
      req.add_header('User-Agent','Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3')
      response=urllib2.urlopen(req)
      link=response.read()
      response.close()
      return link
Exemple #10
0
def NINE(url):
    link = main.OPEN_URL(url)
    link = link.replace('\r', '').replace('\n', '').replace('\t', '').replace(
        '&nbsp;', '').replace('\\', '')
    NINE = re.compile('id="9">(.+?)id="A">').findall(link)
    if NINE:
        match = re.compile(
            '<a href=\'([^"]*)\' title=\'.+?\' class=\'.+?\'>([^"]*)<span>'
        ).findall(NINE[0])
        for url, name in match:
            main.addDir(name, url, 864, '')
Exemple #11
0
def Z(url):
    link = main.OPEN_URL(url)
    link = link.replace('\r', '').replace('\n', '').replace('\t', '').replace(
        '&nbsp;', '').replace('\\', '')
    Z = re.compile('id="Z">(.+?)</div></div>').findall(link)
    if Z:
        match = re.compile(
            '<a href=\'([^"]*)\' title=\'.+?\' class=\'.+?\'>([^"]*)<span>'
        ).findall(Z[0])
        for url, name in match:
            main.addDir(name, url, 864, '')
def PLAY(name, url):
    sources = []
    link = main.OPEN_URL(url)
    link = link.replace('\r', '').replace('\n', '').replace('\t', '').replace(
        '&nbsp;', '').replace('\\', '')
    xbmc.executebuiltin("XBMC.Notification(Please Wait!,Opening Link,2000)")
    match = re.compile('http://vidig.biz/([^"]*)').findall(link)
    for url in match:
        url = url = 'http://vidig.biz/' + url
        print url
        hosted_media = urlresolver.HostedMediaFile(url=url)
        sources.append(hosted_media)
    match = re.compile('http://vk.com/([^"]*)').findall(link)
    for url in match:
        url = 'http://vk.com/' + url
        print url
        hosted_media = urlresolver.HostedMediaFile(url=url)
        sources.append(hosted_media)
    match = re.compile('http://www.firedrive.com/([^"]*)\'').findall(link)
    for url in match:
        url = 'http://www.firedrive.com/' + url
        print url
        hosted_media = urlresolver.HostedMediaFile(url=url)
        sources.append(hosted_media)
    match = re.compile('http://dropvideo.com/([^"]*)').findall(link)
    for url in match:
        url = 'http://dropvideo.com/' + url
        print url
        hosted_media = urlresolver.HostedMediaFile(url=url)
        sources.append(hosted_media)
    if (len(sources) == 0):
        xbmc.executebuiltin(
            "XBMC.Notification(Sorry!,Show doesn't have playable links,5000)")

    else:
        source = urlresolver.choose_source(sources)
        if source:
            stream_url = source.resolve()
            if source.resolve() == False:
                xbmc.executebuiltin(
                    "XBMC.Notification(Sorry!,Link Cannot Be Resolved,5000)")
                return
        else:
            stream_url = False
            return
        listitem = xbmcgui.ListItem(name, iconImage="DefaultVideo.png")
        listitem.setInfo('video', {'Title': name, 'Year': ''})
        xbmc.Player().play(str(stream_url), listitem)
        main.addDir('', '', '', '')
Exemple #13
0
def Seasons(url, name):
    link = main.OPEN_URL(url)
    link = link.replace('\r',
                        '').replace('\n',
                                    '').replace('\t',
                                                '').replace('&nbsp;', '')
    match = re.compile('<h2>Season ([^"]*)</h2>').findall(link)
    #match.sort() # sort list so it shows season one first
    #match = f7(match)
    for season in match:
        #main.addDir("Season "+season,url,13,'','')
        main.addDirG('[COLOR blue]' + 'SEASON ' + season + '[/COLOR]',
                     url,
                     23,
                     '',
                     season=season)
Exemple #14
0
def Episodes(url, season):
    link = main.OPEN_URL(url)
    link = link.replace('\r',
                        '').replace('\n',
                                    '').replace('\t',
                                                '').replace('&nbsp;', '')
    season = str(season)
    match = re.compile(
        '<a href="info.php[?]id=([^"]*)&season=' + season +
        '&episode=([^"]*)&tv">[^"]*<span class="ep_title">([^"]*)</span>'
    ).findall(link)
    #match.sort() # sort list so it shows first episode first

    for linkid, episode, title in match:
        url = MainUrl + 'info.php?id=' + linkid + '&season=' + season + '&episode=' + episode + '&tv'
        name = '[COLOR green]' + "Episode " + episode + '[/COLOR] ' + '[COLOR aqua]' + title + '[/COLOR]  '
        main.addDir(name, url, 52, '', '')
def GRABLINKS(url):
    link = main.OPEN_URL(url)
    link = link.replace('\r', '').replace('\n', '').replace('\t', '').replace(
        '&nbsp;', '').replace('<img src=images/star.gif>', '')
    vidig = re.findall('src="http://vidig.biz/([^"]*)"', link)
    if len(vidig) > 0:
        name = '[COLOR yellow] Vidig [/COLOR]'
        main.addDown2(name, url, 8, '', '')
    vidig2 = re.findall('<iframesrc="http://vidig.biz/([^"]*)"', link)
    if len(vidig2) > 0:
        name = '[COLOR yellow] Vidig [/COLOR]'
        main.addDown2(name, url, 8, '', '')

    vk = re.findall('title="http://vk.com/([^"]*)" ', link)
    if len(vk) > 0:
        name = '[COLOR yellow] VK [/COLOR]'
        main.addDown2(name, url, 8, '', '')
    vk2 = re.findall('<iframedata-src="http://vk.com/([^"]*)"', link)
    if len(vk2) > 0:
        name = '[COLOR yellow] VK [/COLOR]'
        main.addDown2(name, url, 8, '', '')

    firedrive = re.findall('title=\'http://www.firedrive.com/([^"]*)\'>', link)
    if len(firedrive) > 0:
        name = '[COLOR yellow] Firedrive [/COLOR]'
        main.addDown2(name, url, 8, '', '')
    firedrive2 = re.findall('data-src=\'https://www.firedrive.com/([^"]*)\'>',
                            link)
    if len(firedrive2) > 0:
        name = '[COLOR yellow] Firedrive [/COLOR]'
        main.addDown2(name, url, 8, '', '')

    dropvideo = re.findall('title="http://dropvideo.com/([^"]*) ', link)
    if len(dropvideo) > 0:
        name = '[COLOR yellow] Dropvideo [/COLOR]'
        main.addDown2(name, url, 8, '', '')
    dropvideo2 = re.findall('<iframedata-src="http://dropvideo.com/([^"]*)"',
                            link)
    if len(dropvideo2) > 0:
        name = '[COLOR yellow] Dropvideo [/COLOR]'
        main.addDown2(name, url, 8, '', '')

        xbmcplugin.setContent(int(sys.argv[1]), 'Shows')
Exemple #16
0
def MoviesIndex(url, name):  #################  Movie Index #################
    link = main.OPEN_URL(url)
    link = link.replace('\r', '').replace('\n', '').replace('\t', '').replace(
        '&nbsp;', '').replace('\\', '')
    match = re.findall(
        'src="http://www.thedarewall.com/tv/templates/svarog/timthumb.php[?]src=([^"]*)&amp;w=[^"]*&amp;h=[^"]*&amp;zc=1" alt=" " style=".+?<a class="link" href="([^"]*)" title="([^"]*)">.+?<div class="right">                                                            <div style="float:right;display:block;color:#000;font-size:11px; font-weight: bold;">([^"]*)</div>',
        link)
    dialogWait = xbmcgui.DialogProgress()
    ret = dialogWait.create('Please wait until Show 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 thumb, url, name, rating in match:
        name = name.replace('\r', '').replace('\n', '').replace(
            '\t', '').replace('&nbsp;', '').replace('\\', '').replace(
                '\xe2\x80\x99',
                "'").replace('\xe2\x80\x93',
                             '-').replace('\xe2\x80\x94',
                                          '').replace('&-', '-')
        main.addInfo(name + '  ' + " Rating " + rating, url, 80, thumb, '', '')
        loadedLinks = loadedLinks + 1
        percent = (loadedLinks * 100) / totalLinks
        remaining_display = 'Tv Schedule 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

    nextpage = re.compile(
        '><a href="([^"]*)">&raquo;</a></li> </ul></div><div class="clear">'
    ).findall(link)
    for url in nextpage:
        main.addDir('[COLOR blue]Next Page -> [/COLOR]', url, 1,
                    art + '/next.png')
        xbmcplugin.setContent(int(sys.argv[1]), 'Movies')
Exemple #17
0
def MoviesIndex(url, name):  #################  Movie Index #################
    link = main.OPEN_URL(url)
    link = link.replace('\r', '').replace('\n', '').replace('\t', '').replace(
        '&nbsp;', '').replace('\\', '')
    match = re.findall(
        '<div class="view_img">.+?<a href="([^"]*?)" class="spec-border-ie" title.+?<img class="img-preview spec-border"  src="([^"]*?)" alt="([^"]*?)" style',
        link)
    dialogWait = xbmcgui.DialogProgress()
    ret = dialogWait.create('Please wait until Show 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, thumb, name in match:
        name = name.replace('\r', '').replace('\n', '').replace(
            '\t', '').replace('&nbsp;', '').replace('\\', '').replace(
                '\xe2\x80\x99',
                "'").replace('\xe2\x80\x93',
                             '-').replace('\xe2\x80\x94',
                                          '').replace('&-', '-')
        main.addInfo(name, url, 80, thumb, '', '')
        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

    nextpage = re.compile(
        '<a href="([^"]*?)">&raquo;</a></li>             </ul>        </div><div class="clear">'
    ).findall(link)
    for url in nextpage:
        main.addDir('[COLOR blue]Next Page -> [/COLOR]', url, 1,
                    art + '/next.png')
        xbmcplugin.setContent(int(sys.argv[1]), 'Movies')
Exemple #18
0
def TV(url):
    link = main.OPEN_URL(url)
    link = link.replace('\r',
                        '').replace('\n',
                                    '').replace('\t',
                                                '').replace('&nbsp;', '')
    match = re.findall(
        'class="item"><a href="([^"]*)"><img alt=".+?src="([^"]*)" /></a><div class="title"><a title="watch tv([^"]*)" href=".+?<div class="year"> ([^"]*)</div>',
        link)
    dialogWait = xbmcgui.DialogProgress()
    ret = dialogWait.create('Please wait until Shows list is cached.')
    totalLinks = len(match)
    loadedLinks = 0
    remaining_display = 'Shows loaded :: [B]' + str(loadedLinks) + ' / ' + str(
        totalLinks) + '[/B].'
    dialogWait.update(0, '[B]Will load instantly from now on[/B]',
                      remaining_display)
    for url, thumb, name, date in match:
        main.addDirTE(name + ' ' + date, MainUrl + url, 22, thumb, '', '', '',
                      '', '')
        loadedLinks = loadedLinks + 1
        percent = (loadedLinks * 100) / totalLinks
        remaining_display = 'Shows 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

    nextpage = re.compile(
        '<a href="([^"]*)" class="next">Next &#187;</a>').findall(link)
    for url in nextpage:
        main.addDir('[COLOR aqua]' + 'Next Page >>' + '[/COLOR]',
                    MainUrl + url, 11, art + '/next.jpg')

    xbmcplugin.setContent(int(sys.argv[1]), 'TV')
    main.VIEWS()
def SEARCH(url=''):
    encode = main.updateSearchFile(url, 'Movies')
    if not encode: return False
    surl = 'http://www.filmesonlinegratis.net/?s=' + encode + '&s-btn=Buscar'
    link = main.OPEN_URL(surl)
    link = link.replace('\r', '').replace('\n', '').replace('\t', '').replace(
        '&nbsp;', '').replace('&#8211; ', ' - ')
    match = re.findall(
        'title="([^"]*)">[^"]*</a></h2><divclass="capa"> <ahref="([^"]*)"><imgsrc="http://static.filmesonlinegratis.net/thumb.php[?]src=([^"]*)&amp;w=135&amp;h=185" alt="[^"]*" title="[^"]*" /></a> <spanclass="qualidade">([^"]*)</span>',
        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 name, url, thumb, quality in match:
        #main.addDirb(name+'[COLOR blue]  Quality: '+quality+'[/COLOR]',str(url),8,thumb,'')
        main.addInfo(name + '[COLOR blue]  Quality: ' + quality + '[/COLOR]',
                     url, 8, thumb, '', '')
        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

    nextpage = re.compile('href="([^"]*)">\xc2\xbb</a>').findall(link)
    for url in nextpage:
        main.addDir('Next Page >>', base_url + url, 1, art + '/next.png')

    xbmcplugin.setContent(int(sys.argv[1]), 'Movies')
    main.VIEWS()
Exemple #20
0
def Episodes(url,name): ################# TV Episodes #################
        link=main.OPEN_URL(url)
        link=link.replace('\r','').replace('\n','').replace('\t','').replace('&nbsp;','').replace('\\','')
        match = re.findall('<img class="img-preview spec-border"  src="([^"]*?)" alt=" " style="background-color: #717171;"/>.+?<h5 class="left">.+?<a class="link" href="([^"]*?)" title="([^"]*?)">([^"]*?)</a></h5>',link)
        dialogWait = xbmcgui.DialogProgress()
        ret = dialogWait.create('Please wait until Show list is cached.')
        totalLinks = len(match)
        loadedLinks = 0
        remaining_display = 'Tv Episodes loaded :: [B]'+str(loadedLinks)+' / '+str(totalLinks)+'[/B].'
        dialogWait.update(0, '[B]Will load instantly from now on[/B]',remaining_display)
        for thumb,url,title,name in match:
                name=name.replace('\r','').replace('\n','').replace('\t','').replace('&nbsp;','').replace('\\','').replace('">'," ")
                main.addDirTE(title+' - '+name,url,75,thumb,'','','','','')
                loadedLinks = loadedLinks + 1
                percent = (loadedLinks * 100)/totalLinks
                remaining_display = 'Tv Episodes 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
        
        xbmcplugin.setContent(int(sys.argv[1]), 'Tv-Shows')
def TV(url):
    link = main.OPEN_URL(url)
    link = link.replace('\r', '').replace('\n', '').replace('\t', '').replace(
        '&nbsp;', '').replace('&#8211; ', ' - ').replace('#038;', '')
    match = re.findall(
        'title="([^"]*)">[^"]*</a></h2><div class="capa"><a href="([^"]*html)"><img src="http://static.filmesonlinegratis.net/thumb.php[?]src=([^"]*)&amp;w=135&amp;h=185" alt="[^"]*" title="[^"]*" /></a>',
        link)
    dialogWait = xbmcgui.DialogProgress()
    ret = dialogWait.create('Please wait until Series list is cached.')
    totalLinks = len(match)
    loadedLinks = 0
    remaining_display = 'Series loaded :: [B]' + str(
        loadedLinks) + ' / ' + str(totalLinks) + '[/B].'
    dialogWait.update(0, '[B]Will load instantly from now on[/B]',
                      remaining_display)
    for name, url, thumb in match:
        #main.addInfo(name,url,10,thumb,'','')
        main.addDirTE(name, str(url), 6, thumb, '', '', '', '', '')
        loadedLinks = loadedLinks + 1
        percent = (loadedLinks * 100) / totalLinks
        remaining_display = 'Series 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

    nextpage = re.compile('href="([^"]*)">\xc2\xbb</a>').findall(link)
    for url in nextpage:
        main.addDir('[COLOR aqua]' + 'Next Page >>' + '[/COLOR]',
                    base_url + url, 11, art + '/next.png')

    xbmcplugin.setContent(int(sys.argv[1]), 'Movies')
    main.VIEWS()
Exemple #22
0
def List(url):
    link = main.OPEN_URL(url)
    match = re.compile(
        'class="cover"><a href="([^"]*?)" rel="bookmark" title=".+?"><img src="([^"]*?)".+?alt="([^"]*?)" /></a>.+?class="postmetadata">([^"]*?)</p>'
    ).findall(link)
    if len(match) > 0:
        dialogWait = xbmcgui.DialogProgress()
        ret = dialogWait.create('Please wait until Show list is cached.')
        totalLinks = len(match)
        loadedLinks = 0
        remaining_display = 'Episodes loaded :: [B]' + str(
            loadedLinks) + ' / ' + str(totalLinks) + '[/B].'
        dialogWait.update(0, '[B]Will load instantly from now on[/B]',
                          remaining_display)
        for url, thumb, name, date in match:
            #main.addPlayTE(name+' [COLOR red]'+date+'[/COLOR]',url,5,'','','','','','')
            main.addDirTE(name + '[COLOR red] ' + date + '[/COLOR]', url, 865,
                          thumb, '', '', '', '', '')
            loadedLinks = loadedLinks + 1
            percent = (loadedLinks * 100) / totalLinks
            remaining_display = 'Episodes 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
    else:
        matchnew = re.compile(
            'class="cover"><a href="([^"]*?)".+?<img src="([^"]*?)".+?alt="([^"]*?)"/>.+?class="postmetadata">([^"]*?)</p>'
        ).findall(link)
        dialogWait = xbmcgui.DialogProgress()
        ret = dialogWait.create('Please wait until Show list is cached.')
        totalLinks = len(matchnew)
        loadedLinks = 0
        remaining_display = 'Episodes loaded :: [B]' + str(
            loadedLinks) + ' / ' + str(totalLinks) + '[/B].'
        dialogWait.update(0, '[B]Will load instantly from now on[/B]',
                          remaining_display)
        for url, thumb, name, date in matchnew:
            #main.addPlayTE(name+' [COLOR red]'+date+'[/COLOR]',url,5,'','','','','','')
            main.addDirTE(name + '[COLOR red] ' + date + '[/COLOR]', url, 865,
                          thumb, '', '', '', '', '')
            loadedLinks = loadedLinks + 1
            percent = (loadedLinks * 100) / totalLinks
            remaining_display = 'Episodes 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
    paginate = re.compile(
        '="nextpostslink" rel="next" href="([^"]*)">&raquo;</a>').findall(link)
    if paginate:
        xurl = paginate[0]
        main.addDir('[COLOR blue]Next Page' + '[/COLOR]', xurl, 860,
                    art + '/next2.png')
Exemple #23
0
def GRABFEED(name, url):
    link = main.OPEN_URL(url)
    r = re.compile(r'Videobull &raquo;.+?Comments Feed" href="([^"]*?)"',
                   re.M | re.DOTALL).findall(link)
    for url in r:
        LINKS(name, url)
Exemple #24
0
def LINKS(name, url):
    html = main.OPEN_URL(url)
    html = html.replace('\r', '').replace('\n', '').replace('\t', '').replace(
        '&nbsp;',
        '').replace('\\', '').replace('+++',
                                      '<a href="').replace('---', '"></a>')
    link = main.OPEN_URL(url)
    link = html.replace('\r', '').replace('\n', '').replace('\t', '').replace(
        '&nbsp;',
        '').replace('\\', '').replace('+++',
                                      '<a href="').replace('---', '"></a>')

    main.addLink(
        "[COLOR red]For Download Options, Bring up Context Menu Over Selected Link.[/COLOR]",
        '', '')
    nowvideo = re.compile(
        r'<a href="http://www.nowvideo.sx/video/([^"]*)"></a>',
        re.M | re.DOTALL).findall(html)
    for url in nowvideo:
        url = 'http://www.nowvideo.sx/video/' + url
        host = 'nowvideo'
        main.addDown2(
            name.strip() + " [COLOR blue]" + host.upper() + "[/COLOR]", url,
            868, art + '/hosts/' + host + '.png',
            art + '/hosts/' + host + '.png')
    oneeighty = re.compile(r'<a href="http://180upload.com/([^"]*)"></a>',
                           re.M | re.DOTALL).findall(html)
    for url in oneeighty:
        url = 'http://180upload.com/' + url
        host = '180upload'
        main.addDown2(
            name.strip() + " [COLOR blue]" + host.upper() + "[/COLOR]", url,
            868, art + '/hosts/' + host + '.png',
            art + '/hosts/' + host + '.png')
    vodlocker = re.compile(r'<a href="http://vodlocker.com/([^"]*)"></a>',
                           re.M | re.DOTALL).findall(html)
    for url in vodlocker:
        url = 'http://vodlocker.com/' + url
        host = 'vodlocker'
        main.addDown2(
            name.strip() + " [COLOR blue]" + host.upper() + "[/COLOR]", url,
            868, art + '/hosts/' + host + '.png',
            art + '/hosts/' + host + '.png')
    thevideo = re.compile(r'<a href="http://www.thevideo.me/([^"]*)"></a>',
                          re.M | re.DOTALL).findall(html)
    for url in thevideo:
        url = 'http://www.thevideo.me/' + url
        host = 'thevideo'
        main.addDown2(
            name.strip() + " [COLOR blue]" + host.upper() + "[/COLOR]", url,
            868, art + '/hosts/' + host + '.png',
            art + '/hosts/' + host + '.png')
    exashare = re.compile(r'<a href="http://www.exashare.com/([^"]*)"></a>',
                          re.M | re.DOTALL).findall(html)
    for url in exashare:
        url = 'http://www.exashare.com/' + url
        host = 'exashare'
        main.addDown2(
            name.strip() + " [COLOR blue]" + host.upper() + "[/COLOR]", url,
            868, art + '/hosts/' + host + '.png',
            art + '/hosts/' + host + '.png')
    allmyvideos = re.compile(r'<a href="http://allmyvideos.net/([^"]*)"></a>',
                             re.M | re.DOTALL).findall(html)
    for url in allmyvideos:
        url = 'http://allmyvideos.net/' + url
        host = 'allmyvideos'
        main.addDown2(
            name.strip() + " [COLOR blue]" + host.upper() + "[/COLOR]", url,
            868, art + '/hosts/' + host + '.png',
            art + '/hosts/' + host + '.png')
    primeshare = re.compile(
        r'<a href="http://primeshare.tv/download/([^"]*)"></a>',
        re.M | re.DOTALL).findall(html)
    for url in primeshare:
        url = 'http://primeshare.tv/download/' + url
        host = 'primeshare'
        main.addDown2(
            name.strip() + " [COLOR blue]" + host.upper() + "[/COLOR]", url,
            868, art + '/hosts/' + host + '.png',
            art + '/hosts/' + host + '.png')
    oboom = re.compile(r'<a href="https://www.oboom.com/([^"]*)"></a>',
                       re.M | re.DOTALL).findall(html)
    for url in oboom:
        url = 'https://www.oboom.com/' + url
        host = 'oboom'
        main.addDown2(
            name.strip() + " [COLOR blue]" + host.upper() + "[/COLOR]", url,
            868, art + '/hosts/' + host + '.png',
            art + '/hosts/' + host + '.png')
    played = re.compile(r'<a href="http://played.to/([^"]*)"></a>',
                        re.M | re.DOTALL).findall(html)
    for url in played:
        url = 'http://played.to/' + url
        host = 'played'
        main.addDown2(
            name.strip() + " [COLOR blue]" + host.upper() + "[/COLOR]", url,
            868, art + '/hosts/' + host + '.png',
            art + '/hosts/' + host + '.png')
    vidzi = re.compile(r'<a href="http://vidzi.tv/([^"]*)"></a>',
                       re.M | re.DOTALL).findall(html)
    for url in vidzi:
        url = 'http://vidzi.tv/' + url
        host = 'vidzi'
        main.addDown2(
            name.strip() + " [COLOR blue]" + host.upper() + "[/COLOR]", url,
            868, art + '/hosts/' + host + '.png',
            art + '/hosts/' + host + '.png')
    sharerepo = re.compile(r'<a href="http://sharerepo.com/([^"]*)"></a>',
                           re.M | re.DOTALL).findall(html)
    for url in sharerepo:
        url = 'http://sharerepo.com/' + url
        host = 'sharerepo'
        main.addDown2(
            name.strip() + " [COLOR blue]" + host.upper() + "[/COLOR]", url,
            868, art + '/hosts/' + host + '.png',
            art + '/hosts/' + host + '.png')
    mightyupload = re.compile(
        r'<a href="http://mightyupload.com/([^"]*)"></a>',
        re.M | re.DOTALL).findall(html)
    for url in mightyupload:
        url = 'http://mightyupload.com/' + url
        host = 'mightyupload'
        main.addDown2(
            name.strip() + " [COLOR blue]" + host.upper() + "[/COLOR]", url,
            868, art + '/hosts/' + host + '.png',
            art + '/hosts/' + host + '.png')
    billionup = re.compile(r'<a href="http://billionuploads.com/([^"]*)"></a>',
                           re.M | re.DOTALL).findall(html)
    for url in billionup:
        url = 'http://billionuploads.com/' + url
        host = 'billionuploads'
        main.addDown2(
            name.strip() + " [COLOR blue]" + host.upper() + "[/COLOR]", url,
            868, art + '/hosts/' + host + '.png',
            art + '/hosts/' + host + '.png')
    flashx = re.compile(r'<a href="http://www.flashx.tv/([^"]*)"></a>',
                        re.M | re.DOTALL).findall(html)
    for url in flashx:
        url = 'http://www.flashx.tv/' + url
        host = 'flashx'
        main.addDown2(
            name.strip() + " [COLOR blue]" + host.upper() + "[/COLOR]", url,
            868, art + '/hosts/' + host + '.png',
            art + '/hosts/' + host + '.png')
    streamin = re.compile(r'<a href="http://streamin.to/([^"]*)"></a>',
                          re.M | re.DOTALL).findall(html)
    for url in streamin:
        url = 'http://streamin.to/' + url
        host = 'streamin'
        main.addDown2(
            name.strip() + " [COLOR blue]" + host.upper() + "[/COLOR]", url,
            868, art + '/hosts/' + host + '.png',
            art + '/hosts/' + host + '.png')
    moevideo = re.compile(r'<a href="http://moevideo.net/video/([^"]*)"></a>',
                          re.M | re.DOTALL).findall(html)
    for url in moevideo:
        url = 'http://moevideo.net/video/' + url
        host = 'moevideo'
        main.addDown2(
            name.strip() + " [COLOR blue]" + host.upper() + "[/COLOR]", url,
            868, art + '/hosts/' + host + '.png',
            art + '/hosts/' + host + '.png')
    uptobox = re.compile(r'<a href="http://uptobox.com/([^"]*)"></a>',
                         re.M | re.DOTALL).findall(html)
    for url in uptobox:
        url = 'http://uptobox.com/' + url
        host = 'uptobox'
        main.addDown2(
            name.strip() + " [COLOR blue]" + host.upper() + "[/COLOR]", url,
            868, art + '/hosts/' + host + '.png',
            art + '/hosts/' + host + '.png')
    vshare = re.compile(r'<a href="http://vshare.eu/([^"]*)"></a>',
                        re.M | re.DOTALL).findall(html)
    for url in vshare:
        url = 'http://vshare.eu/' + url
        host = 'vshare'
        main.addDown2(
            name.strip() + " [COLOR blue]" + host.upper() + "[/COLOR]", url,
            868, art + '/hosts/' + host + '.png',
            art + '/hosts/' + host + '.png')
    vidspot = re.compile(r'<a href="http://vidspot.net/([^"]*)"></a>',
                         re.M | re.DOTALL).findall(html)
    for url in vidspot:
        url = 'http://vidspot.net/' + url
        host = 'vidspot'
        main.addDown2(
            name.strip() + " [COLOR blue]" + host.upper() + "[/COLOR]", url,
            868, art + '/hosts/' + host + '.png',
            art + '/hosts/' + host + '.png')
    yourvideohost = re.compile(
        r'<a href="http://yourvideohost.com/([^"]*)"></a>',
        re.M | re.DOTALL).findall(html)
    for url in yourvideohost:
        url = 'http://yourvideohost.com/' + url
        host = 'yourvideohost'
        main.addDown2(
            name.strip() + " [COLOR blue]" + host.upper() + "[/COLOR]", url,
            868, art + '/hosts/' + host + '.png',
            art + '/hosts/' + host + '.png')
    uploadable = re.compile(
        r'<a href="http://www.uploadable.ch/file/([^"]*)"></a>',
        re.M | re.DOTALL).findall(html)
    for url in uploadable:
        url = 'http://www.uploadable.ch/file/' + url
        host = 'uploadable'
        main.addDown2(
            name.strip() + " [COLOR blue]" + host.upper() + "[/COLOR]", url,
            868, art + '/hosts/' + host + '.png',
            art + '/hosts/' + host + '.png')
    junkyvideo = re.compile(r'<a href="http://junkyvideo.com/([^"]*)"></a>',
                            re.M | re.DOTALL).findall(html)
    for url in junkyvideo:
        url = 'http://junkyvideo.com/' + url
        host = 'junkyvideo'
        main.addDown2(
            name.strip() + " [COLOR blue]" + host.upper() + "[/COLOR]", url,
            868, art + '/hosts/' + host + '.png',
            art + '/hosts/' + host + '.png')
    sharesix = re.compile(r'<a href="http://sharesix.com/f/([^"]*)"></a>',
                          re.M | re.DOTALL).findall(html)
    for url in sharesix:
        url = 'http://sharesix.com/f/' + url
        host = 'sharesix'
        main.addDown2(
            name.strip() + " [COLOR blue]" + host.upper() + "[/COLOR]", url,
            868, art + '/hosts/' + host + '.png',
            art + '/hosts/' + host + '.png')
    bestreams = re.compile(r'<a href="http://bestreams.net/([^"]*)"></a>',
                           re.M | re.DOTALL).findall(html)
    for url in bestreams:
        url = 'http://bestreams.net/' + url
        host = 'bestreams'
        main.addDown2(
            name.strip() + " [COLOR blue]" + host.upper() + "[/COLOR]", url,
            868, art + '/hosts/' + host + '.png',
            art + '/hosts/' + host + '.png')
    hugefiles = re.compile(r'<a href="http://hugefiles.net/([^"]*)"></a>',
                           re.M | re.DOTALL).findall(html)
    for url in hugefiles:
        url = 'http://hugefiles.net/' + url
        host = 'hugefiles'
        main.addDown2(
            name.strip() + " [COLOR blue]" + host.upper() + "[/COLOR]", url,
            868, art + '/hosts/' + host + '.png',
            art + '/hosts/' + host + '.png')
    vidto = re.compile(r'<a href="http://vidto.me/([^"]*)"></a>',
                       re.M | re.DOTALL).findall(html)
    for url in vidto:
        url = 'http://vidto.me/' + url
        host = 'vidto'
        main.addDown2(
            name.strip() + " [COLOR blue]" + host.upper() + "[/COLOR]", url,
            868, art + '/hosts/' + host + '.png',
            art + '/hosts/' + host + '.png')
    videott = re.compile(r'<a href="http://www.video.tt/video/([^"]*)"></a>',
                         re.M | re.DOTALL).findall(html)
    for url in videott:
        url = 'http://www.video.tt/video/' + url
        host = 'videott'
        main.addDown2(
            name.strip() + " [COLOR blue]" + host.upper() + "[/COLOR]", url,
            868, art + '/hosts/' + host + '.png',
            art + '/hosts/' + host + '.png')
    vidbull = re.compile(r'<a href="http://vidbull.com/([^"]*)"></a>',
                         re.M | re.DOTALL).findall(html)
    for url in vidbull:
        url = 'http://vidbull.com/' + url
        host = 'vidbull'
        main.addDown2(
            name.strip() + " [COLOR blue]" + host.upper() + "[/COLOR]", url,
            868, art + '/hosts/' + host + '.png',
            art + '/hosts/' + host + '.png')
    youwatch = re.compile(r'<a href="http://youwatch.org/([^"]*)"></a>',
                          re.M | re.DOTALL).findall(html)
    for url in youwatch:
        url = 'http://youwatch.org/' + url
        host = 'youwatch'
        main.addDown2(
            name.strip() + " [COLOR blue]" + host.upper() + "[/COLOR]", url,
            868, art + '/hosts/' + host + '.png',
            art + '/hosts/' + host + '.png')
    vidbux = re.compile(r'<a href="http://www.vidbux.to/([^"]*)"></a>',
                        re.M | re.DOTALL).findall(html)
    for url in vidbux:
        url = 'http://www.vidbux.to/' + url
        host = 'vidbux'
        main.addDown2(
            name.strip() + " [COLOR blue]" + host.upper() + "[/COLOR]", url,
            868, art + '/hosts/' + host + '.png',
            art + '/hosts/' + host + '.png')
    vidxden = re.compile(r'<a href="http://www.vidxden.to/([^"]*)"></a>',
                         re.M | re.DOTALL).findall(html)
    for url in vidxden:
        url = 'http://www.vidxden.to/' + url
        host = 'vidxden'
        main.addDown2(
            name.strip() + " [COLOR blue]" + host.upper() + "[/COLOR]", url,
            868, art + '/hosts/' + host + '.png',
            art + '/hosts/' + host + '.png')
    uploadc = re.compile(r'<a href="http://www.uploadc.com/([^"]*)"></a>',
                         re.M | re.DOTALL).findall(html)
    for url in uploadc:
        url = 'http://www.uploadc.com/' + url
        host = 'uploadc'
        main.addDown2(
            name.strip() + " [COLOR blue]" + host.upper() + "[/COLOR]", url,
            868, art + '/hosts/' + host + '.png',
            art + '/hosts/' + host + '.png')
    cloudyvideos = re.compile(
        r'<a href="http://cloudyvideos.com/([^"]*)"></a>',
        re.M | re.DOTALL).findall(link)
    for url in cloudyvideos:
        host = 'cloudyvideos'
        url = 'http://cloudyvideos.com/' + url
        main.addDown2(
            name.strip() + " [COLOR blue]" + host.upper() + "[/COLOR]", url,
            868, art + '/hosts/' + host + '.png',
            art + '/hosts/' + host + '.png')
    movreel = re.compile('<a href="http://movreel.com/([^"]*)"></a>').findall(
        link)
    for url in movreel:
        url = 'http://movreel.com/' + url
        host = 'movreel'
        main.addDown2(
            name.strip() + " [COLOR blue]" + host.upper() + "[/COLOR]", url,
            868, art + '/hosts/' + host + '.png',
            art + '/hosts/' + host + '.png')
    movshare = re.compile(
        '<a href="http://www.movshare.net/video/([^"]*)"></a>').findall(link)
    for url in movshare:
        url = 'http://www.movshare.net/video/' + url
        host = 'movshare'
        main.addDown2(
            name.strip() + " [COLOR blue]" + host.upper() + "[/COLOR]", url,
            868, art + '/hosts/' + host + '.png',
            art + '/hosts/' + host + '.png')

    oboom = re.compile('<a href="https://www.oboom.com/([^"]*)"></a>').findall(
        link)
    for url in oboom:
        url = 'https://www.oboom.com/' + url
        host = 'oboom'
        main.addDown2(
            name.strip() + " [COLOR blue]" + host.upper() + "[/COLOR]", url,
            868, art + '/hosts/' + host + '.png',
            art + '/hosts/' + host + '.png')

    nosupload = re.compile('http://nosupload.com/[?]d=([^"]*)').findall(link)
    for url in nosupload:
        url = 'http://nosupload.com/' + url
        host = 'nosupload'
        main.addDown2(
            name.strip() + " [COLOR blue]" + host.upper() + "[/COLOR]", url,
            868, art + '/hosts/' + host + '.png',
            art + '/hosts/' + host + '.png')
    filefactory = re.compile('http://www.filefactory.com/([^"]*)').findall(
        link)
    for url in filefactory:
        url = 'http://www.filefactory.com/' + url
        host = 'filefactory'
        main.addDown2(
            name.strip() + " [COLOR blue]" + host.upper() + "[/COLOR]", url,
            868, art + '/hosts/' + host + '.png',
            art + '/hosts/' + host + '.png')