[streamable] Add support for new embedded URL schema
authorLucas M <lawlmart@users.noreply.github.com>
Wed, 26 Apr 2017 16:39:53 +0000 (12:39 -0400)
committerSergey M <dstftw@gmail.com>
Wed, 26 Apr 2017 16:39:53 +0000 (23:39 +0700)
youtube_dl/extractor/streamable.py

index 9f5c237efc9283a9d59667b843268c31769ba11c..34725274e4148a1df3d2e3468600cb1c3eafedbd 100644 (file)
@@ -12,7 +12,7 @@ from ..utils import (
 
 
 class StreamableIE(InfoExtractor):
-    _VALID_URL = r'https?://streamable\.com/(?:e/)?(?P<id>\w+)'
+    _VALID_URL = r'https?://streamable\.com/(?:[es]/)?(?P<id>\w+)'
     _TESTS = [
         {
             'url': 'https://streamable.com/dnd1',
@@ -47,6 +47,10 @@ class StreamableIE(InfoExtractor):
         {
             'url': 'https://streamable.com/e/dnd1',
             'only_matching': True,
+        },
+        {
+            'url': 'https://streamable.com/s/okkqk/drxjds',
+            'only_matching': True,
         }
     ]