]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[common] extract partOfTVSeries info in json-ld
authorRemita Amine <remitamine@gmail.com>
Sat, 6 Aug 2016 17:58:38 +0000 (18:58 +0100)
committerRemita Amine <remitamine@gmail.com>
Sat, 6 Aug 2016 17:58:38 +0000 (18:58 +0100)
youtube_dl/extractor/common.py

index b54a3699695774abe7d3281362afe80346f4a4e9..67f49f51b52c85c488851903e309c38c217f23dc 100644 (file)
@@ -846,7 +846,7 @@ class InfoExtractor(object):
                     part_of_season = e.get('partOfSeason')
                     if isinstance(part_of_season, dict) and part_of_season.get('@type') == 'TVSeason':
                         info['season_number'] = int_or_none(part_of_season.get('seasonNumber'))
-                    part_of_series = e.get('partOfSeries')
+                    part_of_series = e.get('partOfSeries') or e.get('partOfTVSeries')
                     if isinstance(part_of_series, dict) and part_of_series.get('@type') == 'TVSeries':
                         info['series'] = unescapeHTML(part_of_series.get('name'))
                 elif item_type == 'Article':