aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/spiegel.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2017-07-16 04:38:20 +0700
committerSergey M․ <dstftw@gmail.com>2017-07-16 04:38:20 +0700
commit00d06e3cfcb7bfffa3b585694525f05a6ce36af9 (patch)
tree40e847e4b8bb78239155c1a2abcbf8cae8169e65 /youtube_dl/extractor/spiegel.py
parent749ca5eced0b9a8ed1ef79f4ee80908e0ac242c8 (diff)
[spiegel:article] Add support for nexx iframe embeds (closes #13029)
Diffstat (limited to 'youtube_dl/extractor/spiegel.py')
-rw-r--r--youtube_dl/extractor/spiegel.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/youtube_dl/extractor/spiegel.py b/youtube_dl/extractor/spiegel.py
index ec1b60388..8598377b0 100644
--- a/youtube_dl/extractor/spiegel.py
+++ b/youtube_dl/extractor/spiegel.py
@@ -4,6 +4,7 @@ from __future__ import unicode_literals
import re
from .common import InfoExtractor
+from .nexx import NexxEmbedIE
from .spiegeltv import SpiegeltvIE
from ..compat import compat_urlparse
from ..utils import (
@@ -143,6 +144,9 @@ class SpiegelArticleIE(InfoExtractor):
entries = [
self.url_result(compat_urlparse.urljoin(
self.http_scheme() + '//spiegel.de/', embed_path))
- for embed_path in embeds
- ]
- return self.playlist_result(entries)
+ for embed_path in embeds]
+ if embeds:
+ return self.playlist_result(entries)
+
+ return self.playlist_from_matches(
+ NexxEmbedIE._extract_urls(webpage), ie=NexxEmbedIE.ie_key())