[spiegel:article] Add support for nexx iframe embeds (closes #13029)

This commit is contained in:
Sergey M․ 2017-07-16 04:38:20 +07:00
parent 749ca5eced
commit 00d06e3cfc
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -4,6 +4,7 @@
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 @@ def _real_extract(self, url):
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())