mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-10 09:07:58 +01:00
[tumblr] Add support for pornhub embeds (Closes #5963)
This commit is contained in:
parent
65d161c480
commit
78e2b74bb9
2 changed files with 6 additions and 0 deletions
|
@ -1322,6 +1322,7 @@ def _playlist_from_matches(matches, getter=None, ie=None):
|
|||
if sportbox_urls:
|
||||
return _playlist_from_matches(sportbox_urls, ie='SportBoxEmbed')
|
||||
|
||||
# Look for embedded PornHub player
|
||||
pornhub_url = PornHubIE._extract_url(webpage)
|
||||
if pornhub_url:
|
||||
return self.url_result(pornhub_url, 'PornHub')
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
import re
|
||||
|
||||
from .common import InfoExtractor
|
||||
from .pornhub import PornHubIE
|
||||
|
||||
|
||||
class TumblrIE(InfoExtractor):
|
||||
|
@ -55,6 +56,10 @@ def _real_extract(self, url):
|
|||
if vid_me_embed_url is not None:
|
||||
return self.url_result(vid_me_embed_url, 'Vidme')
|
||||
|
||||
pornhub_url = PornHubIE._extract_url(webpage)
|
||||
if pornhub_url:
|
||||
return self.url_result(pornhub_url, 'PornHub')
|
||||
|
||||
iframe_url = self._search_regex(
|
||||
r'src=\'(https?://www\.tumblr\.com/video/[^\']+)\'',
|
||||
webpage, 'iframe url')
|
||||
|
|
Loading…
Reference in a new issue