1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-12-24 23:37:55 +01:00

[jwplatform] Improve embeds extraction (closes #25467)

This commit is contained in:
Sergey M․ 2020-05-31 11:10:31 +07:00 committed by tsia
parent 1b1de85aac
commit 748fa251c0

View File

@ -32,7 +32,7 @@ class JWPlatformIE(InfoExtractor):
@staticmethod
def _extract_urls(webpage):
return re.findall(
r'<(?:script|iframe)[^>]+?src=["\']((?:https?:)?//content\.jwplatform\.com/players/[a-zA-Z0-9]{8})',
r'<(?:script|iframe)[^>]+?src=["\']((?:https?:)?//(?:content\.jwplatform|cdn\.jwplayer)\.com/players/[a-zA-Z0-9]{8})',
webpage)
def _real_extract(self, url):