Esempio n. 1
0
 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
Esempio n. 2
0
 def resolve(self, url):
     return directstream.googlepass(url)
Esempio n. 3
0
    def resolve(self, url):
        if 'googlevideo' in url:
            return directstream.googlepass(url)

        return url
Esempio n. 4
0
 def resolve(self, url):
     if "google" in url:
         return directstream.googlepass(url)
     else:
         return url
Esempio n. 5
0
 def resolve(self, url):
     if 'google' in url and not 'googleapis' in url:
         return directstream.googlepass(url)
     else:
         return url