aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-11-25 14:34:19 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2014-11-25 14:34:19 +0100
commit65f3a228b16c55fee959eee055767a796479270f (patch)
tree7a8d6291aa9dd2460fe56f815b561d5d5fa3cb67
parent3004ae2c3a2465ce83f7339a0a81584abd9dd84f (diff)
downloadyoutube-dl-65f3a228b16c55fee959eee055767a796479270f.tar.xz
[generic] Add support for LazyYT embeds (Fixes #4306)
-rw-r--r--youtube_dl/extractor/generic.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py
index 128715caf..6a95e2952 100644
--- a/youtube_dl/extractor/generic.py
+++ b/youtube_dl/extractor/generic.py
@@ -445,6 +445,14 @@ class GenericIE(InfoExtractor):
'title': 'Rosetta #CometLanding webcast HL 10',
}
},
+ # LazyYT
+ {
+ 'url': 'http://discourse.ubuntu.com/t/unity-8-desktop-mode-windows-on-mir/1986',
+ 'info_dict': {
+ 'title': 'Unity 8 desktop-mode windows on Mir! - Ubuntu Discourse',
+ },
+ 'playlist_mincount': 2,
+ }
]
def report_following_redirect(self, new_url):
@@ -702,6 +710,12 @@ class GenericIE(InfoExtractor):
return _playlist_from_matches(
matches, lambda m: unescapeHTML(m[1]))
+ # Look for lazyYT YouTube embed
+ matches = re.findall(
+ r'class="lazyYT" data-youtube-id="([^"]+)"', webpage)
+ if matches:
+ return _playlist_from_matches(matches, lambda m: unescapeHTML(m))
+
# Look for embedded Dailymotion player
matches = re.findall(
r'<iframe[^>]+?src=(["\'])(?P<url>(?:https?:)?//(?:www\.)?dailymotion\.com/embed/video/.+?)\1', webpage)