aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSurya Oktafendri <f2face@f2face.com>2018-04-09 00:19:23 +0700
committerSergey M <dstftw@gmail.com>2018-04-09 00:19:23 +0700
commit1fc37ca3f181159c98bccf081766abb73b9d344f (patch)
tree3c6f78707e6ededb43d3cde7ed56e225055a02d1
parentd04ca9761615e2ed3fdf89d8d87a4b9adfffacc3 (diff)
[generic] Add support for share-videos.se embeds (closes #16089)
-rw-r--r--youtube_dl/extractor/generic.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py
index cf64398e3..4b210da72 100644
--- a/youtube_dl/extractor/generic.py
+++ b/youtube_dl/extractor/generic.py
@@ -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\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
entries = self._parse_html5_media_entries(url, webpage, video_id, m3u8_id='hls')
if entries: