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): return directstream.googlepass(url)
def resolve(self, url): if 'googlevideo' in url: return directstream.googlepass(url) return url
def resolve(self, url): if "google" in url: return directstream.googlepass(url) else: return url
def resolve(self, url): if 'google' in url and not 'googleapis' in url: return directstream.googlepass(url) else: return url