def getVideoUrl(url): print url match = help_fns.findAtUrl(regexHash, url) data = {'hash': match[0], 'confirm': "Continue as Free User"} data = urllib.urlencode(data) match = help_fns.findAtUrlWithData(regexPlaylist, url, data) getFileUrl = "http://www.sockshare.com" + match[0] print getFileUrl print help_fns.openUrl(getFileUrl) videoUrl = help_fns.findAtUrl(regexData, getFileUrl)[0] return videoUrl.replace("&", "&")
def getHostsByFilm(self, pUrl, pDisplayName): res = [] pUrl = pUrl.replace("https", "http") print pUrl match = help_fns.findAtUrl(self.hosterRegex, pUrl) for m in match: gd = m.groupdict() if gd['hoster'] in help_fns.knownHosts: for i in range(1, int(gd['maxHosts']) + 1): url = gd['url'].replace("Mirror=" + gd['curHost'], "Mirror=" + str(i)) res.append( ResultBean( gd['hoster'], { "url": self.hosterResultPrefix + url.replace("&", "&"), "hoster": gd['hoster'], "displayName": pDisplayName, "type": "hoster" })) return res
def getVideoUrl(self, url): link = help_fns.openUrl(url) cid = re.compile('cid="([^"]*)"').findall(link)[0] cid2 = "undefined" cid3 = "bs.to" key = re.compile('key="([^"]*)"').findall(link)[0] myfile = re.compile('file="([^"]*)"').findall(link)[0] data = { "cid": cid, "cid2": cid2, "cid3": cid3, "file": myfile, "filekey": key, "numOfErrors": "0", "pass": "******", "user": "******" } data = urllib.urlencode(data) link = help_fns.openUrl("http://www.movshare.net/api/player.api.php?" + data) print link match = help_fns.findAtUrl( "url=([^&]*)", "http://www.movshare.net/api/player.api.php?" + data) print match return match[0]
def getVideoUrl_Outside(url): print url match = help_fns.findAtUrl("href=['\"](http://filenuke.com/[^'\"]*)['\"]", url) print match return getVideoUrl(match[0])
def getVideoUrl(self, url): match = help_fns.findAtUrl('name="confirm" value="([^"]*)"', url) data = {'confirm': match[0]} data = urllib.urlencode(data) match = help_fns.findAtUrlWithData("file: '([^']*)'", url, data) return match[0]
def getSearchMatch(self): res = [] url = self.searchUrl + self.dataProvider.getSearchString() match = help_fns.findAtUrl(self.searchRegex, url) for r in match: x = r.groupdict() res.append(x) return res
def showFilm(self, url, displayName): match = help_fns.findAtUrl( 'id="SeasonSelection" rel="\\?Addr=(?P<addr>[^&]*)&SeriesID=(?P<seriesId>[^"]*)"', url) if len(match) == 1: x = match[0].groupdict() self.showStaffeln(url, displayName, x['addr'], x['seriesId']) else: BaseSite.showFilm(self, url, displayName)
def getContent(self): res = [] for m in help_fns.findAtUrl(self.regexFolgen, self.url): x = m.groupdict() newFolge = Folge() newFolge.name = x['nr'].zfill(2) + " - " + x['name'] newFolge.url = x['url'] res.append(newFolge) return res
def getContent(self): res = [] print self.url for m in help_fns.findAtUrl(self.regexStaffeln, self.url): x = m.groupdict() newStaffel = Staffel() newStaffel.name = "Staffel " + x['name'] newStaffel.url = x['url'] res.append(newStaffel) return res
def getContent(self): res = [] match = help_fns.findAtUrl(self.regexSerien, 'https://serienstream.to/serien') for m in match: x = m.groupdict() newSerie = Serien() newSerie.name = x['name'] newSerie.url = "/katalog/" + x['name'] res.append(newSerie) return res
def getContent(self): res = [] help_fns.openUrl("http://bs.to") match = help_fns.findAtUrl(self.regexSerien, "https://bs.to/serie-alphabet") for m in match: x = m.groupdict() newSerie = Serie() newSerie.name = x['name'] newSerie.url = x['url'] res.append(newSerie) return res
def getVideoUrl(self, url): match = help_fns.findAtUrl(self.regexHash, url) data = { 'hash': match[0], 'imhuman': "Continue as Free User", 'op': 'download1', 'id': id } data = urllib.urlencode(data) link = help_fns.findAtUrlWithData('file: "([^"]*)"', url, data) return link[0]
def getUnknowHoster(self): res = [] for m in help_fns.findAtUrl(self.regexHoster, self.url): x = m.groupdict() newHoster = Hoster() newHoster.name = x['name'] newHoster.url = x['url'] newHoster.displayName = self.displayName if not newHoster.name in help_fns.knownHosts: res.append(newHoster) return res
def getContent(self): res = [] print self.url match = help_fns.findAtUrl(self.regexSerien, self.url) for m in match: x = m.groupdict() newSerie = Serie() newSerie.name = x['name'] newSerie.url = x['url'] newSerie.img = "http://serienstream.to/" + x['img'] res.append(newSerie) return res
def getVideoUrl(self, url): link = help_fns.openUrl(url) cid = re.compile('cid="([^"]*)"').findall(link)[0] key = re.compile('key="([^"]*)"').findall(link)[0] myfile = re.compile('file="([^"]*)"').findall(link)[0] data = {"cid": cid, "file": myfile, "key": key} data = urllib.urlencode(data) match = help_fns.findAtUrl( "url=([^&]*)", "http://www.videoweed.es/api/player.api.php?" + data) return match[0]
def getVideoUrl(self, url): cj = cookielib.CookieJar() opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj)) link = opener.open(url).read() key = re.compile('filekey="([^"]*)"').findall(link) filename = re.compile('file="([^"]*)"').findall(link) url = "http://www.divxstage.to/api/player.api.php?" url += "file=" + filename[0] url += "&key=" + key[0] url += "&cid=1" link = help_fns.findAtUrl('url=([^&]*)', url) return link[0]
def showStaffeln(self, url, displayname, addr, seriesId): match = help_fns.findAtUrl( '<option value="(?P<url>\\d{1,2})" rel="(?P<folgen>[^"]*)"[^>]*>Staffel \\d{1,2}</option>', url) res = [] for m in match: x = m.groupdict() res.append( ResultBean( x['url'], { 'url': url, 'displayName': displayname, 'folgen': x['folgen'], 'type': 'staffel', 'addr': addr, 'seriesId': seriesId, 'season': x['url'] })) self.dataProvider.printResult(res)
def getHostsByFilm(self, pUrl, pDisplayName): res = [] match = help_fns.findAtUrl(self.hosterRegex, pUrl) for m in match: gd = m.groupdict() if gd['hoster'] in help_fns.knownHosts: print gd['url'] res.append( ResultBean( gd['hoster'], { "url": self.hosterResultPrefix + gd['url'].replace("&", "&"), "hoster": gd['hoster'], "displayName": pDisplayName, "type": "hoster" })) return res
def isSerie(self, url): return help_fns.findAtUrl('SeasonSelection', url)
def getVideoUrl_Outside(self, url): match = help_fns.findAtUrl(self.regexPutlocker, url) return self.getVideoUrl(match[0])
def getVideoUrl_Outside(self, url): match = help_fns.findAtUrl( "href='(http://www.firedrive.com/file/[^']*)", url) return self.getVideoUrl(match[0])
def getInnerUrl(self, url): return help_fns.findAtUrl(self.regexPowerwatch, url)[0]
def getVideoUrl_Outside(self, url): match = help_fns.findAtUrl('href="(http://www.movshare.net/[^"]*)"', url) print match return self.getVideoUrl(match[0])
def getVideoUrl_Outside(url): match = help_fns.findAtUrl(regexPutlocker, url) return getVideoUrl(match[0])