Browse Source

[common] extract partOfTVSeries info in json-ld

totalwebcasting
Remita Amine 8 years ago
parent
commit
d16b3c6677
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      youtube_dl/extractor/common.py

+ 1
- 1
youtube_dl/extractor/common.py View 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':


Loading…
Cancel
Save