projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
016dd82
)
[ndr] Fix description and upload date extraction (Closes #7893)
author
Sergey M․
<dstftw@gmail.com>
Fri, 18 Dec 2015 15:34:17 +0000
(21:34 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Fri, 18 Dec 2015 15:34:17 +0000
(21:34 +0600)
youtube_dl/extractor/ndr.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/ndr.py
b/youtube_dl/extractor/ndr.py
index 16213eed90119266207bd1936adf098050a92c4b..894c513998af07f24d372c65f2d08759e588453f 100644
(file)
--- 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>',
'embedURL', webpage, 'embed URL', fatal=True)
description = self._search_regex(
r'<p[^>]+itemprop="description">([^<]+)</p>',
- webpage, 'description',
fatal=Fals
e)
+ webpage, 'description',
default=None) or self._og_search_description(webpag
e)
timestamp = parse_iso8601(
self._search_regex(
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',
webpage, 'upload date', fatal=False))
return {
'_type': 'url_transparent',