Skip to content

Commit

Permalink
[jwplatform] Improve embeds extraction (closes #25467)
Browse files Browse the repository at this point in the history
  • Loading branch information
dstftw committed May 31, 2020
1 parent 228c1d6 commit bef4688
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion youtube_dl/extractor/jwplatform.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def _extract_url(webpage):
@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):
Expand Down

0 comments on commit bef4688

Please sign in to comment.