aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-01-20 00:02:46 +0600
committerSergey M․ <dstftw@gmail.com>2016-01-20 00:02:46 +0600
commit485139c15c91af03bdb89c7ac07563d9fb979363 (patch)
tree2785d672c4b342d12005fc4d5e73ac7a621a4520 /youtube_dl
parentb605ebb609dc208a814ab44fff84463bf0c5369a (diff)
[viewster] Tolerate missing synopsis (Closes #8274)
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/viewster.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/viewster.py b/youtube_dl/extractor/viewster.py
index 185b1c119..fe94a4793 100644
--- a/youtube_dl/extractor/viewster.py
+++ b/youtube_dl/extractor/viewster.py
@@ -155,10 +155,10 @@ class ViewsterIE(InfoExtractor):
self._sort_formats(formats)
- synopsis = info.get('Synopsis', {})
+ synopsis = info.get('Synopsis') or {}
# Prefer title outside synopsis since it's less messy
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'))
timestamp = parse_iso8601(info.get('ReleaseDate'))