From 389e2956a7e95799e27e48142c5024897c8560c3 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Tue, 23 Feb 2021 02:15:51 +0530 Subject: [PATCH] [jwplatform] Add support for `hyland.com` Related: https://github.com/ytdl-org/youtube-dl/issues/12918 :ci skip dl --- youtube_dlc/extractor/jwplatform.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/youtube_dlc/extractor/jwplatform.py b/youtube_dlc/extractor/jwplatform.py index c34b5f5e6..5aa508bf9 100644 --- a/youtube_dlc/extractor/jwplatform.py +++ b/youtube_dlc/extractor/jwplatform.py @@ -32,9 +32,14 @@ def _extract_url(webpage): @staticmethod def _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')): + # is used by hyland.com + # if we find