Ejemplo n.º 1
0
def SEARCHSHOWOLD(url):
             if settings.getSetting('tmovies_account') == 'true':  
              net.set_cookies(cookiejar)
             link = OPEN_URL(url)
             match=re.compile('<a href="(.+?)">\r\n        <img src=".+?" data-original="(.+?)"  class=".+?" style=".+?"  border=".+?" height=".+?" width=".+?" alt="Watch (.+?) Online for Free">\r\n').findall(link)
             if len(match) > 0:
              for url,sitethumb,name in match:
               matchyear=re.compile('<div class="filmyar"><a class="filmyar" href="http://'+domain+'/browse_tv_shows/all/byViews/.+?/">(.+?)</a>').findall(link)
               if len(match) > 0:
                    for year in matchyear:        
                         data = main.GRABTVMETA(name,year)
                         thumb = data['cover_url']
                    types = 'tvshow'
                    if 'watch_tv_show' in url:
                              main.addTVDir(name+'('+year+')',url,'episodes',thumb,data,types,'')
                              main.AUTO_VIEW('tvshows')
Ejemplo n.º 2
0
def SEARCHSHOW(url):
   try:             
             link = net.http_GET(url).content
             match=re.compile('<a href="(.+?)">\r\n        <img src=".+?" data-original="(.+?)"  class=".+?" style=".+?"  border=".+?" height=".+?" width=".+?" alt="Watch (.+?) Online for Free">\r\n').findall(link)
             if len(match) > 0:
              for url,sitethumb,name in match:
               matchyear=re.compile('<div class="filmyar"><a class="filmyar" href="http://moviedb.name/browse_tv_shows/all/byViews/.+?/">(.+?)</a>').findall(link)
               if len(match) > 0:
                    for year in matchyear:        
                         data = main.GRABTVMETA(name,year)
                         thumb = data['cover_url']
                    types = 'tvshow'
                    if 'watch_tv_show' in url:
                              main.addTVDir(name,url,'episodes',thumb,data,types,'')
                              main.AUTO_VIEW('tvshows')
   except Exception:
        buggalo.onExceptionRaised()
Ejemplo n.º 3
0
def SEARCHSHOWOLD(url):
        if settings.getSetting('tmovies_account') == 'true':  
              net.set_cookies(cookiejar)
        link = OPEN_URL(url)
        match=re.compile('<a href="(.+?)">\r\n        <img src=".+?" data-original="(.+?)"  class=".+?" style=".+?"  border=".+?" height=".+?" width=".+?" alt="Watch (.+?) Online for Free">\r\n').findall(link)
        if len(match) > 0:
         for url,sitethumb,name in match: 
           matchyear=re.compile('<a class="filmyar" href=".+?">(.+?)</a>').findall(link)
           if len(matchyear) > 0:
              for year in matchyear:
                 try:     
                         data = main.GRABMETA(name,year)
                         thumb = data['cover_url']               
                         yeargrab = data['year']
                         year = str(yeargrab)
                 except:
                         data = ''
                         thumb = sitethumb
                         year = year
              favtype = 'movie'
              if 'watch_tv_show' in url:
                              main.addTVDir(name+'('+year+')',url,'episodes',thumb,data,types,'')
                              main.AUTO_VIEW('tvshows')