def FRIGHTINDEX(url,favtype): params = {'url':url, 'favtype':favtype} link = net.http_GET(url).content #match=re.compile('<a href="(.+?)">\n\t\t <img width="184" height="256" src="(.+?)" alt="(.+?)"/>').findall(link) match=re.compile('<a href="(.+?)">\n <img width="184" height="256" src="(.+?)" alt="(.+?)"/>').findall(link) for url,thumb,name in match: url = URL + url data = main.GRABMETA(name,'') thumb = data['cover_url'] favtype = 'movies' main.addMDCDir(name,url,'frightvideolinks',thumb,data,favtype) main.AUTO_VIEW('movies')
def FRIGHTINDEX_DEEPLARGER(url,favtype): mainurl = url params = {'url':url,'favtype':favtype} link=OPEN_URL(url) match=re.compile('<a href="(.+?)"><img width="184" height="256" src="(.+?)"\n.+?alt="(.+?)"></a>\n\n').findall(link) #for url,thumb,name in match: for url,thumb,name in match[200:300]: url = URL + url data = main.GRABMETA(name,'') thumb = data['cover_url'] main.addMDCDir(name,url,'frightvideolinks',thumb,data,favtype) if len(match) >=300: main.addMDCDir('Next Page',mainurl,'frightindexdeeplarger','','',favtype) main.AUTO_VIEW('movies')