summary refs log tree commit diff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2020-12-12 05:09:30 +0700
committerSergey M․ <dstftw@gmail.com>2020-12-12 05:10:54 +0700
commit469ff02f4e288f5e2d10c8f9f6582ae9b63e924b (patch)
tree435908710562d221a684dadd61f2f036a6452bc8
parent56f1c5ad38686c0437924eb51c4b54a5c0c876dc (diff)
downloadyoutube-dl-469ff02f4e288f5e2d10c8f9f6582ae9b63e924b.tar.gz
youtube-dl-469ff02f4e288f5e2d10c8f9f6582ae9b63e924b.tar.xz
youtube-dl-469ff02f4e288f5e2d10c8f9f6582ae9b63e924b.zip
[ruutu] Add support for static.nelonenmedia.fi (closes #25412)
-rw-r--r--youtube_dl/extractor/ruutu.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/youtube_dl/extractor/ruutu.py b/youtube_dl/extractor/ruutu.py
index 4dbd144bc..af42e3b12 100644
--- a/youtube_dl/extractor/ruutu.py
+++ b/youtube_dl/extractor/ruutu.py
@@ -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):