[jwplatform] Improve embeds extraction (closes #25467)

This commit is contained in:
Sergey M․ 2020-05-31 11:10:31 +07:00
parent 228c1d685b
commit bef4688c72
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -32,7 +32,7 @@ def _extract_url(webpage):
@staticmethod @staticmethod
def _extract_urls(webpage): def _extract_urls(webpage):
return re.findall( 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) webpage)
def _real_extract(self, url): def _real_extract(self, url):