aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/generic.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2017-01-25 23:27:22 +0700
committerSergey M․ <dstftw@gmail.com>2017-01-25 23:27:22 +0700
commit17f8deeb481a7aa3079d7e11da2c255f893b9e8c (patch)
tree17ce1772003e5715488d50bbb51c2b2849d8b843 /youtube_dl/extractor/generic.py
parentb8a03b66601f6af9e6b4009cba634dac6e0d30e6 (diff)
[extractor/generic] Add support for openload embeds (closes #11536, closes #11812)
Diffstat (limited to 'youtube_dl/extractor/generic.py')
-rw-r--r--youtube_dl/extractor/generic.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py
index 40201f311..a23486620 100644
--- a/youtube_dl/extractor/generic.py
+++ b/youtube_dl/extractor/generic.py
@@ -80,6 +80,7 @@ from .piksel import PikselIE
from .videa import VideaIE
from .twentymin import TwentyMinutenIE
from .ustream import UstreamIE
+from .openload import OpenloadIE
class GenericIE(InfoExtractor):
@@ -2431,6 +2432,12 @@ class GenericIE(InfoExtractor):
return _playlist_from_matches(
twentymin_urls, ie=TwentyMinutenIE.ie_key())
+ # Look for Openload embeds
+ openload_urls = OpenloadIE._extract_urls(webpage)
+ if openload_urls:
+ return _playlist_from_matches(
+ openload_urls, ie=OpenloadIE.ie_key())
+
# Looking for http://schema.org/VideoObject
json_ld = self._search_json_ld(
webpage, video_id, default={}, expected_type='VideoObject')