diff options
author | Sergey M․ <dstftw@gmail.com> | 2018-01-27 23:23:36 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2018-01-27 23:24:38 +0700 |
commit | 3931b84597c3de013ab9ec3455dbcdaf568871e2 (patch) | |
tree | adbacc426a3945f3e9e288fcf586eeb74bed4809 /youtube_dl/extractor/common.py | |
parent | a0ee342b50f8fac4663a1d4d3822f5879caf398a (diff) |
[extractor/common] Improve _json_ld for articles
Diffstat (limited to 'youtube_dl/extractor/common.py')
-rw-r--r-- | youtube_dl/extractor/common.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py index a072e9bc9..deafb4850 100644 --- a/youtube_dl/extractor/common.py +++ b/youtube_dl/extractor/common.py @@ -1027,7 +1027,7 @@ class InfoExtractor(object): part_of_series = e.get('partOfSeries') or e.get('partOfTVSeries') if isinstance(part_of_series, dict) and part_of_series.get('@type') in ('TVSeries', 'Series', 'CreativeWorkSeries'): info['series'] = unescapeHTML(part_of_series.get('name')) - elif item_type == 'Article': + elif item_type in ('Article', 'NewsArticle'): info.update({ 'timestamp': parse_iso8601(e.get('datePublished')), 'title': unescapeHTML(e.get('headline')), |