A feature-rich command-line audio/video downloader
[jwplatform] Add support for `hyland.com` Related: https://github.com/ytdl-org/youtube-dl/issues/12918
pukkandan389e2956a7e9
diff --git a/youtube_dlc/extractor/jwplatform.py b/youtube_dlc/extractor/jwplatform.pyindex c34b5f5e6b..5aa508bf98 100644--- a/youtube_dlc/extractor/jwplatform.py+++ b/youtube_dlc/extractor/jwplatform.py@@ -32,9 +32,14 @@ class JWPlatformIE(InfoExtractor):@staticmethoddef _extract_urls(webpage):- return re.findall(- r'<(?:script|iframe)[^>]+?src=["\']((?:https?:)?//(?:content\.jwplatform|cdn\.jwplayer)\.com/players/[a-zA-Z0-9]{8})',- webpage)+ for tag, key in ((r'(?:script|iframe)', 'src'), ('input', 'value')):+ # <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)+ if ret:+ return retdef _real_extract(self, url):url, smuggled_data = unsmuggle_url(url, {})