mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-30 22:25:19 +00:00 
			
		
		
		
	[extractor/common] Improve _json_ld for articles
This commit is contained in:
		| @@ -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')), | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Sergey M․
					Sergey M․