def download_default_transcript(self, url, language_code=None): # pylint: disable=unused-argument """ Download default transcript from Vimeo video platform API in WebVVT format. Arguments: url (str): Transcript download url. Returns: sub (unicode): Transcripts formatted per WebVTT format https://w3c.github.io/webvtt/ """ data = requests.get(url) return remove_escaping(data.content)
def download_default_transcript(self, url=None, language_code=None): # pylint: disable=unused-argument """ Download default transcript from a video platform API in WebVVT format. Arguments: url (str): Transcript download url. Returns: sub (unicode): Transcripts formatted per WebVTT format https://w3c.github.io/webvtt/ """ log.debug("BC: downloading default transcript from url:{}".format(url)) if url is None: raise VideoXBlockException(_('`url` parameter is required.')) data = requests.get(url) return remove_escaping(data.content)