1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-01-23 17:33:11 +08:00

[generic] Add Share-Videos.se embeds detection (Fixes #16089)

This commit is contained in:
Surya Oktafendri 2018-04-07 11:26:28 +07:00
parent e944737c59
commit 7531713b47
No known key found for this signature in database
GPG Key ID: 8CAB076E32F1FC8D

View File

@ -1967,6 +1967,16 @@ class GenericIE(InfoExtractor):
'params': {
'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
@ -2978,6 +2988,14 @@ class GenericIE(InfoExtractor):
merged[k] = v
return merged
# Look for Share-Videos.se embeds
sharevideosse_urls = [m.group('url') for m in re.finditer(
r'<iframe[^>]+?src=(["\']+)(?P<url>https?://embed\.share-videos\.se/auto/embed/[^"\']+)\1',
webpage)]
if sharevideosse_urls:
return self.playlist_from_matches(
sharevideosse_urls, video_id, video_title)
# Look for HTML5 media
entries = self._parse_html5_media_entries(url, webpage, video_id, m3u8_id='hls')
if entries: