From bab19a8e91153705d6600fe1d1a0b0aa0bf93bb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergey=20M=E2=80=A4?= Date: Sat, 9 May 2015 00:23:35 +0600 Subject: [PATCH] [extractor/generic] Add support for svt embeds (Closes #5622) --- youtube_dl/extractor/generic.py | 6 ++++++ youtube_dl/extractor/svt.py | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index cd7c47d6d1..046bcb0f04 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -37,6 +37,7 @@ from .udn import UDNEmbedIE from .senateisvp import SenateISVPIE from .bliptv import BlipTVIE +from .svt import SVTIE class GenericIE(InfoExtractor): @@ -1091,6 +1092,11 @@ def _playlist_from_matches(matches, getter=None, ie=None): if bliptv_url: return self.url_result(bliptv_url, 'BlipTV') + # Look for SVT player + svt_url = SVTIE._extract_url(webpage) + if svt_url: + return self.url_result(svt_url, 'SVT') + # Look for embedded condenast player matches = re.findall( r'