From: Remita Amine Date: Sat, 6 Aug 2016 17:58:38 +0000 (+0100) Subject: [common] extract partOfTVSeries info in json-ld X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=d16b3c6677f1f699635892876f4566962094221d;p=youtube-dl [common] extract partOfTVSeries info in json-ld --- diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py index b54a36996..67f49f51b 100644 --- a/youtube_dl/extractor/common.py +++ b/youtube_dl/extractor/common.py @@ -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':