aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/ndr.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-12-18 21:34:17 +0600
committerSergey M․ <dstftw@gmail.com>2015-12-18 21:34:17 +0600
commit9796a9b20ccc46217c27523774f5088d74e672bb (patch)
treeb9f4c8d8b0af6b9461b341155377b6f4fda30d5f /youtube_dl/extractor/ndr.py
parent016dd820505e635ed1d4e5890f370cf800b25c7f (diff)
[ndr] Fix description and upload date extraction (Closes #7893)
Diffstat (limited to 'youtube_dl/extractor/ndr.py')
-rw-r--r--youtube_dl/extractor/ndr.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/ndr.py b/youtube_dl/extractor/ndr.py
index 16213eed9..894c51399 100644
--- a/youtube_dl/extractor/ndr.py
+++ b/youtube_dl/extractor/ndr.py
@@ -88,10 +88,10 @@ class NDRIE(NDRBaseIE):
'embedURL', webpage, 'embed URL', fatal=True)
description = self._search_regex(
r'<p[^>]+itemprop="description">([^<]+)</p>',
- webpage, 'description', fatal=False)
+ webpage, 'description', default=None) or self._og_search_description(webpage)
timestamp = parse_iso8601(
self._search_regex(
- r'<span itemprop="datePublished" content="([^"]+)">',
+ r'<span[^>]+itemprop="(?:datePublished|uploadDate)"[^>]+content="([^"]+)"',
webpage, 'upload date', fatal=False))
return {
'_type': 'url_transparent',