mirror of
https://github.com/l1ving/youtube-dl
synced 2025-01-23 14:57:51 +08:00
[heise] incorporate pull request review
This commit is contained in:
parent
744fd94d1b
commit
4cf0d33728
@ -2,15 +2,14 @@
|
|||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
from .common import InfoExtractor
|
from .common import InfoExtractor
|
||||||
from .youtube import YoutubeIE
|
|
||||||
from .kaltura import KalturaIE
|
from .kaltura import KalturaIE
|
||||||
|
from .youtube import YoutubeIE
|
||||||
from ..utils import (
|
from ..utils import (
|
||||||
determine_ext,
|
determine_ext,
|
||||||
int_or_none,
|
int_or_none,
|
||||||
parse_iso8601,
|
parse_iso8601,
|
||||||
xpath_text,
|
|
||||||
smuggle_url,
|
smuggle_url,
|
||||||
ExtractorError,
|
xpath_text,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@ -55,6 +54,9 @@ class HeiseIE(InfoExtractor):
|
|||||||
'ext': 'mp4',
|
'ext': 'mp4',
|
||||||
'title': 'ct10 nachgehakt hos restrictor',
|
'title': 'ct10 nachgehakt hos restrictor',
|
||||||
},
|
},
|
||||||
|
'params': {
|
||||||
|
'skip_download': True,
|
||||||
|
},
|
||||||
}, {
|
}, {
|
||||||
'url': 'http://www.heise.de/ct/artikel/c-t-uplink-3-3-Owncloud-Tastaturen-Peilsender-Smartphone-2403911.html',
|
'url': 'http://www.heise.de/ct/artikel/c-t-uplink-3-3-Owncloud-Tastaturen-Peilsender-Smartphone-2403911.html',
|
||||||
'only_matching': True,
|
'only_matching': True,
|
||||||
@ -80,15 +82,13 @@ class HeiseIE(InfoExtractor):
|
|||||||
if yt_urls:
|
if yt_urls:
|
||||||
return self.playlist_from_matches(yt_urls, video_id, title, ie=YoutubeIE.ie_key())
|
return self.playlist_from_matches(yt_urls, video_id, title, ie=YoutubeIE.ie_key())
|
||||||
|
|
||||||
try:
|
kaltura_url = KalturaIE._extract_url(webpage)
|
||||||
container_id = self._search_regex(
|
if kaltura_url:
|
||||||
r'<div class="videoplayerjw"[^>]+data-container="([0-9]+)"',
|
return self.url_result(smuggle_url(kaltura_url, {'source_url': url}), KalturaIE.ie_key())
|
||||||
webpage, 'container ID')
|
|
||||||
|
|
||||||
except ExtractorError:
|
container_id = self._search_regex(
|
||||||
kaltura_url = KalturaIE._extract_url(webpage)
|
r'<div class="videoplayerjw"[^>]+data-container="([0-9]+)"',
|
||||||
if kaltura_url:
|
webpage, 'container ID')
|
||||||
return self.url_result(smuggle_url(kaltura_url, {'source_url': url}), KalturaIE.ie_key())
|
|
||||||
|
|
||||||
sequenz_id = self._search_regex(
|
sequenz_id = self._search_regex(
|
||||||
r'<div class="videoplayerjw"[^>]+data-sequenz="([0-9]+)"',
|
r'<div class="videoplayerjw"[^>]+data-sequenz="([0-9]+)"',
|
||||||
|
Loading…
Reference in New Issue
Block a user