diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-06-13 03:36:16 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-06-13 03:36:16 +0600 |
commit | 65d161c480e9964026e618a2e95f9fc9eb8119e7 (patch) | |
tree | 9fdd23a7198b55e555dedc4b584c3c7dd6aa1519 /youtube_dl/extractor/generic.py | |
parent | 9fcbd5db2abb5a56beefe4a64486da692705ad12 (diff) |
[extractor/generic] Add support for pornhub embeds
Diffstat (limited to 'youtube_dl/extractor/generic.py')
-rw-r--r-- | youtube_dl/extractor/generic.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index 40d869c53..f683760e4 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -42,6 +42,7 @@ from .udn import UDNEmbedIE from .senateisvp import SenateISVPIE from .bliptv import BlipTVIE from .svt import SVTIE +from .pornhub import PornHubIE class GenericIE(InfoExtractor): @@ -1321,6 +1322,10 @@ class GenericIE(InfoExtractor): if sportbox_urls: return _playlist_from_matches(sportbox_urls, ie='SportBoxEmbed') + pornhub_url = PornHubIE._extract_url(webpage) + if pornhub_url: + return self.url_result(pornhub_url, 'PornHub') + # Look for embedded Tvigle player mobj = re.search( r'<iframe[^>]+?src=(["\'])(?P<url>(?:https?:)?//cloud\.tvigle\.ru/video/.+?)\1', webpage) |