[ruutu] Add support for static.nelonenmedia.fi (closes #25412)
authorSergey M․ <dstftw@gmail.com>
Fri, 11 Dec 2020 22:09:30 +0000 (05:09 +0700)
committerSergey M․ <dstftw@gmail.com>
Fri, 11 Dec 2020 22:10:54 +0000 (05:10 +0700)
youtube_dl/extractor/ruutu.py

index 4dbd144bcfb6f27dae64e5aba3acbbea38dbd659..af42e3b127314c1e295ed375853dba65a975339a 100644 (file)
@@ -13,7 +13,14 @@ from ..utils import (
 
 
 class RuutuIE(InfoExtractor):
-    _VALID_URL = r'https?://(?:www\.)?(?:ruutu|supla)\.fi/(?:video|supla|audio)/(?P<id>\d+)'
+    _VALID_URL = r'''(?x)
+                    https?://
+                        (?:
+                            (?:www\.)?(?:ruutu|supla)\.fi/(?:video|supla|audio)/|
+                            static\.nelonenmedia\.fi/player/misc/embed_player\.html\?.*?\bnid=
+                        )
+                        (?P<id>\d+)
+                    '''
     _TESTS = [
         {
             'url': 'http://www.ruutu.fi/video/2058907',
@@ -80,6 +87,10 @@ class RuutuIE(InfoExtractor):
             'url': 'http://www.supla.fi/audio/2231370',
             'only_matching': True,
         },
+        {
+            'url': 'https://static.nelonenmedia.fi/player/misc/embed_player.html?nid=3618790',
+            'only_matching': True,
+        },
     ]
 
     def _real_extract(self, url):