support embedding video.
This commit is contained in:
parent
f46186f960
commit
19d7a4f22d
@ -867,6 +867,10 @@ class YoutubeDL(object):
|
|||||||
ie_key=ie_result.get('ie_key'),
|
ie_key=ie_result.get('ie_key'),
|
||||||
extra_info=extra_info)
|
extra_info=extra_info)
|
||||||
elif result_type == 'url_transparent':
|
elif result_type == 'url_transparent':
|
||||||
|
if not self.params.get('download_embedded_video', True):
|
||||||
|
ie_result['embedded_url'] = ie_result['url']
|
||||||
|
return ie_result
|
||||||
|
|
||||||
# Use the information from the embedding page
|
# Use the information from the embedding page
|
||||||
info = self.extract_info(
|
info = self.extract_info(
|
||||||
ie_result['url'], ie_key=ie_result.get('ie_key'),
|
ie_result['url'], ie_key=ie_result.get('ie_key'),
|
||||||
|
@ -252,14 +252,12 @@ class OdnoklassnikiIE(InfoExtractor):
|
|||||||
}
|
}
|
||||||
|
|
||||||
if provider == 'USER_YOUTUBE':
|
if provider == 'USER_YOUTUBE':
|
||||||
"""
|
|
||||||
info.update({
|
info.update({
|
||||||
'_type': 'url_transparent',
|
'_type': 'url_transparent',
|
||||||
'url': movie['contentId'],
|
'url': 'https://www.youtube.com/watch?v=%s' % movie['contentId'],
|
||||||
})
|
})
|
||||||
return info
|
return info
|
||||||
"""
|
|
||||||
raise ExtractorError('This video is embedded from YouTube.', expected=True)
|
|
||||||
|
|
||||||
assert title
|
assert title
|
||||||
if 'LIVE_TV' in provider:
|
if 'LIVE_TV' in provider:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user