Exemple #1
0
	def resolve(self, url):
		if "google" in url:
			return directstream.googlepass(url)
		elif 'vidcloud' in url:
			r = client.request(url)
			url = re.findall("file: '(.+?)'", r)[0]
			return url
		else:
			return url
 def resolve(self, url):
     try:
         if not url.startswith('http'):
             url = 'http:' + url
         for i in range(3):
             if 'google' in url and not 'googleapis' in url:
                 url = directstream.googlepass(url)
             if url:
                 break
         return url
     except Exception:
         return
    def resolve(self, url):
        if 'googlevideo' in url:
            return directstream.googlepass(url)

        return url
Exemple #4
0
	def resolve(self, url):
		if 'google' in url:
			return directstream.googlepass(url)
		else:
			return url
 def resolve(self, url):
     return directstream.googlepass(url)