From 15e46ed9c1f4896be408484c13cfefabd1caf42c Mon Sep 17 00:00:00 2001 From: lucas Date: Wed, 26 Apr 2017 12:28:28 -0400 Subject: [PATCH 1/2] Add new streamable embedded url format --- youtube_dl/extractor/streamable.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/youtube_dl/extractor/streamable.py b/youtube_dl/extractor/streamable.py index 9f5c237ef..bcc8dcc8f 100644 --- a/youtube_dl/extractor/streamable.py +++ b/youtube_dl/extractor/streamable.py @@ -12,7 +12,7 @@ from ..utils import ( class StreamableIE(InfoExtractor): - _VALID_URL = r'https?://streamable\.com/(?:e/)?(?P\w+)' + _VALID_URL = r'https?://streamable\.com/(?:e/|s/)?(?P\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, } ] From 0b9c0a309bad3efea97a307f8ef756b480f52aa4 Mon Sep 17 00:00:00 2001 From: lucas Date: Wed, 26 Apr 2017 12:37:14 -0400 Subject: [PATCH 2/2] Fix url regex --- youtube_dl/extractor/streamable.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/streamable.py b/youtube_dl/extractor/streamable.py index bcc8dcc8f..34725274e 100644 --- a/youtube_dl/extractor/streamable.py +++ b/youtube_dl/extractor/streamable.py @@ -12,7 +12,7 @@ from ..utils import ( class StreamableIE(InfoExtractor): - _VALID_URL = r'https?://streamable\.com/(?:e/|s/)?(?P\w+)' + _VALID_URL = r'https?://streamable\.com/(?:[es]/)?(?P\w+)' _TESTS = [ { 'url': 'https://streamable.com/dnd1',