mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-09-10 00:58:17 +02:00
[jwplatform] Add support for hyland.com
Related: https://github.com/ytdl-org/youtube-dl/issues/12918 :ci skip dl
This commit is contained in:
parent
da6dcbad7d
commit
389e2956a7
@ -32,9 +32,14 @@ def _extract_url(webpage):
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _extract_urls(webpage):
|
def _extract_urls(webpage):
|
||||||
return re.findall(
|
for tag, key in ((r'(?:script|iframe)', 'src'), ('input', 'value')):
|
||||||
r'<(?:script|iframe)[^>]+?src=["\']((?:https?:)?//(?:content\.jwplatform|cdn\.jwplayer)\.com/players/[a-zA-Z0-9]{8})',
|
# <input value=URL> is used by hyland.com
|
||||||
|
# if we find <iframe>, dont look for <input>
|
||||||
|
ret = re.findall(
|
||||||
|
r'<%s[^>]+?%s=["\']((?:https?:)?//(?:content\.jwplatform|cdn\.jwplayer)\.com/players/[a-zA-Z0-9]{8})' % (tag, key),
|
||||||
webpage)
|
webpage)
|
||||||
|
if ret:
|
||||||
|
return ret
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
url, smuggled_data = unsmuggle_url(url, {})
|
url, smuggled_data = unsmuggle_url(url, {})
|
||||||
|
Loading…
Reference in New Issue
Block a user