]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[jwplatform] Improve embeds extraction (closes #25467)
authorSergey M․ <dstftw@gmail.com>
Sun, 31 May 2020 04:10:31 +0000 (11:10 +0700)
committerSergey M․ <dstftw@gmail.com>
Sun, 31 May 2020 04:10:31 +0000 (11:10 +0700)
youtube_dl/extractor/jwplatform.py

index 2aabd98b5bbaf36efecdc76415bf52854705bd1e..dfa07e42354b62044e8587e41c46163693d50107 100644 (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):