From e0dfdf25304d97407ad4b2f5460edc418f46a74d Mon Sep 17 00:00:00 2001 From: Hier631 <34473369+Hier631@users.noreply.github.com> Date: Thu, 14 Dec 2017 00:50:45 +0100 Subject: [PATCH 1/2] Add files via upload --- youtube_dl/extractor/heise.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/youtube_dl/extractor/heise.py b/youtube_dl/extractor/heise.py index 82e11a7d8..2012baa62 100644 --- a/youtube_dl/extractor/heise.py +++ b/youtube_dl/extractor/heise.py @@ -12,7 +12,7 @@ from ..utils import ( class HeiseIE(InfoExtractor): - _VALID_URL = r'https?://(?:www\.)?heise\.de/(?:[^/]+/)+[^/]+-(?P[0-9]+)\.html' + _VALID_URL = r'https?://(?:www\.|m\.)?heise\.de/(?:[^/]+/)+[^/]+-(?P[0-9]+)\.html' _TESTS = [{ 'url': 'http://www.heise.de/video/artikel/Podcast-c-t-uplink-3-3-Owncloud-Tastaturen-Peilsender-Smartphone-2404147.html', 'md5': 'ffed432483e922e88545ad9f2f15d30e', @@ -54,6 +54,7 @@ class HeiseIE(InfoExtractor): }] def _real_extract(self, url): + url = url.replace('www', 'm', 1) video_id = self._match_id(url) webpage = self._download_webpage(url, video_id) @@ -97,7 +98,7 @@ class HeiseIE(InfoExtractor): description = self._og_search_description( webpage, default=None) or self._html_search_meta( - 'description', webpage) + 'description', webpage, default=None) return { 'id': video_id, @@ -106,6 +107,6 @@ class HeiseIE(InfoExtractor): 'thumbnail': (xpath_text(doc, './/{http://rss.jwpcdn.com/}image') or self._og_search_thumbnail(webpage)), 'timestamp': parse_iso8601( - self._html_search_meta('date', webpage)), + self._html_search_meta('date', webpage, default=None)), 'formats': formats, } From e62f659441e6c639ffe45a515689b95e14e79c03 Mon Sep 17 00:00:00 2001 From: Hier631 <34473369+Hier631@users.noreply.github.com> Date: Fri, 15 Dec 2017 18:13:58 +0100 Subject: [PATCH 2/2] Fix for CBNlocal --- youtube_dl/extractor/cbslocal.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/youtube_dl/extractor/cbslocal.py b/youtube_dl/extractor/cbslocal.py index 7d78e3aae..8f22cafd6 100644 --- a/youtube_dl/extractor/cbslocal.py +++ b/youtube_dl/extractor/cbslocal.py @@ -92,7 +92,8 @@ class CBSLocalIE(AnvatoIE): info_dict = self._extract_anvato_videos(webpage, display_id) time_str = self._html_search_regex( - r'class="entry-date">([^<]+)<', webpage, 'released date', default=None) + r'class="post-date">([^<]+)<', webpage, 'released date', default=None) + time_str = time_str.replace(' at ', ' ') if time_str: timestamp = unified_timestamp(time_str) else: