Пример #1
0
		referer = matches.group(1)
		
		try:
			contents = self.post_page(self.url, {
				'op': 		"download1",
				'usr_login':	"",
				'id':		video_id,
				'filename':	filename,
				'referer':	referer,
				'method_free':	"Continue to Video"
			})
		except urllib2.URLError, e:
			self.state = "failed"
			raise TechnicalError("Could not complete human verification")
		
		script = unpack_js(contents)
		
		matches = re.search("'file','([^']+)'", script)
		
		if matches is None:
			self.state = "failed"
			raise TechnicalError("No video was found on the specified URL.")
		
		video_file = matches.group(1)
		
		stream_dict = {
			'url'		: video_file,
			'method'	: "GET",
			'quality'	: "unknown",
			'priority'	: 1,
			'format'	: "unknown"
Пример #2
0
				'referer':	referer,
				'method_free':	"Free"
			})
		except urllib2.URLError, e:
			self.state = "failed"
			raise TechnicalError("Could not continue to download")
		
		matches = re.search('<div id="player_code">(.*?)</div>', contents, re.DOTALL)
		
		if matches is None:
			self.state = "unsupported"
			raise ResolverError("No player was found. The Filenuke resolver currently only supports video links.")
		
		player_code = matches.group(1)
		
		script = unpack_js(player_code)
		
		matches = re.search("'file','([^']+)'", script)
		
		if matches is None:
			self.state = "failed"
			raise TechnicalError("No video was found on the specified URL.")
		
		video_file = matches.group(1)
		
		stream_dict = {
			'url'		: video_file,
			'method'	: "GET",
			'quality'	: "unknown",
			'priority'	: 1,
			'format'	: "unknown"
Пример #3
0
		referer = matches.group(1)
		
		try:
			contents = self.post_page(self.url, {
				'op': 		"download1",
				'usr_login':	"",
				'id':		video_id,
				'filename':	filename,
				'referer':	referer,
				'method_free':	"Continue to Video"
			})
		except urllib2.URLError, e:
			self.state = "failed"
			raise TechnicalError("Could not complete human verification")
		
		script = unpack_js(contents)
		
		matches = re.search("'file','([^']+)'", script)
		
		if matches is None:
			self.state = "failed"
			raise TechnicalError("No video was found on the specified URL.")
		
		video_file = matches.group(1)
		
		stream_dict = {
			'url'		: video_file,
			'method'	: "GET",
			'quality'	: "unknown",
			'priority'	: 1,
			'format'	: "unknown"
Пример #4
0
        except urllib2.URLError, e:
            self.state = "failed"
            raise TechnicalError("Could not continue to download")

        matches = re.search('<div id="player_code">(.*?)</div>', contents,
                            re.DOTALL)

        if matches is None:
            self.state = "unsupported"
            raise ResolverError(
                "No player was found. The Filenuke resolver currently only supports video links."
            )

        player_code = matches.group(1)

        script = unpack_js(player_code)

        matches = re.search("'file','([^']+)'", script)

        if matches is None:
            self.state = "failed"
            raise TechnicalError("No video was found on the specified URL.")

        video_file = matches.group(1)

        stream_dict = {
            'url': video_file,
            'method': "GET",
            'quality': "unknown",
            'priority': 1,
            'format': "unknown"