X-Git-Url: https://jfr.im/git/yt-dlp.git/blobdiff_plain/1e8fe57e5cd0f33f940df87430d75e1230ec5b7a..bfd973ece3369c593b5e82a88cc16de80088a73e:/yt_dlp/extractor/streamable.py diff --git a/yt_dlp/extractor/streamable.py b/yt_dlp/extractor/streamable.py index a2935b04b..3e60479ad 100644 --- a/yt_dlp/extractor/streamable.py +++ b/yt_dlp/extractor/streamable.py @@ -1,5 +1,3 @@ -import re - from .common import InfoExtractor from ..utils import ( ExtractorError, @@ -12,6 +10,7 @@ class StreamableIE(InfoExtractor): _VALID_URL = r'https?://streamable\.com/(?:[es]/)?(?P\w+)' + _EMBED_REGEX = [r']+\bsrc=(?P[\'"])(?P(?:https?:)?//streamable\.com/.+?)(?P=q1)'] _TESTS = [ { 'url': 'https://streamable.com/dnd1', @@ -53,14 +52,6 @@ class StreamableIE(InfoExtractor): } ] - @staticmethod - def _extract_url(webpage): - mobj = re.search( - r']+src=(?P[\'"])(?P(?:https?:)?//streamable\.com/(?:(?!\1).+))(?P=q1)', - webpage) - if mobj: - return mobj.group('src') - def _real_extract(self, url): video_id = self._match_id(url)