1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-18 15:04:33 +01:00

[viewster] Tolerate missing synopsis (Closes #8274)

This commit is contained in:
Sergey M․ 2016-01-20 00:02:46 +06:00
parent b605ebb609
commit 485139c15c

View File

@ -155,10 +155,10 @@ class ViewsterIE(InfoExtractor):
self._sort_formats(formats) self._sort_formats(formats)
synopsis = info.get('Synopsis', {}) synopsis = info.get('Synopsis') or {}
# Prefer title outside synopsis since it's less messy # Prefer title outside synopsis since it's less messy
title = (info.get('Title') or synopsis['Title']).strip() title = (info.get('Title') or synopsis['Title']).strip()
description = synopsis.get('Detailed') or info.get('Synopsis', {}).get('Short') description = synopsis.get('Detailed') or (info.get('Synopsis') or {}).get('Short')
duration = int_or_none(info.get('Duration')) duration = int_or_none(info.get('Duration'))
timestamp = parse_iso8601(info.get('ReleaseDate')) timestamp = parse_iso8601(info.get('ReleaseDate'))