mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-25 11:41:52 +00:00
[generic] Add support for share-videos.se embeds (closes #16089)
This commit is contained in:
parent
d04ca97616
commit
1fc37ca3f1
1 changed files with 18 additions and 0 deletions
|
@ -1967,6 +1967,16 @@ class GenericIE(InfoExtractor):
|
||||||
'params': {
|
'params': {
|
||||||
'skip_download': True,
|
'skip_download': True,
|
||||||
},
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'url': 'http://share-videos.se/auto/video/83645793?uid=13',
|
||||||
|
'md5': 'b68d276de422ab07ee1d49388103f457',
|
||||||
|
'info_dict': {
|
||||||
|
'id': '83645793',
|
||||||
|
'title': 'Lock up and get excited',
|
||||||
|
'thumbnail': r're:^https?://.*\.jpg(\?.*)?$',
|
||||||
|
'ext': 'mp4'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
# {
|
# {
|
||||||
# # TODO: find another test
|
# # TODO: find another test
|
||||||
|
@ -2978,6 +2988,14 @@ class GenericIE(InfoExtractor):
|
||||||
merged[k] = v
|
merged[k] = v
|
||||||
return merged
|
return merged
|
||||||
|
|
||||||
|
# Look for Share-Videos.se embeds
|
||||||
|
sharevideosse_urls = [m.group('url') for m in re.finditer(
|
||||||
|
r'<iframe[^>]+?src\s*=\s*(["\'])(?P<url>https?://embed\.share-videos\.se/auto/embed/\d+.+?)\1',
|
||||||
|
webpage)]
|
||||||
|
if sharevideosse_urls:
|
||||||
|
return self.playlist_from_matches(
|
||||||
|
sharevideosse_urls, video_id, video_title)
|
||||||
|
|
||||||
# Look for HTML5 media
|
# Look for HTML5 media
|
||||||
entries = self._parse_html5_media_entries(url, webpage, video_id, m3u8_id='hls')
|
entries = self._parse_html5_media_entries(url, webpage, video_id, m3u8_id='hls')
|
||||||
if entries:
|
if entries:
|
||||||
|
|
Loading…
Reference in a new issue