aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dl/extractor/viewster.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-07-22 02:08:25 +0600
committerSergey M․ <dstftw@gmail.com>2015-07-22 02:08:25 +0600
commitc84683c88bbcb3cfd8d27af54a418035f431371d (patch)
treef47fb96f678cba6901014c47794aab0aff112e20 /youtube_dl/extractor/viewster.py
parentb68a2613f856fbbf943abf8d6de6ffc6aff2e930 (diff)
downloadyoutube-dl-c84683c88bbcb3cfd8d27af54a418035f431371d.zip
youtube-dl-c84683c88bbcb3cfd8d27af54a418035f431371d.tar.gz
youtube-dl-c84683c88bbcb3cfd8d27af54a418035f431371d.tar.bz2
[viewster] Strip titles
Diffstat (limited to 'youtube_dl/extractor/viewster.py')
-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 03c8736..6ef3629 100644
--- a/youtube_dl/extractor/viewster.py
+++ b/youtube_dl/extractor/viewster.py
@@ -88,7 +88,7 @@ class ViewsterIE(InfoExtractor):
self.url_result(
'http://www.viewster.com/movie/%s' % episode['OriginId'], 'Viewster')
for episode in episodes]
- title = info.get('Title') or info['Synopsis']['Title']
+ title = (info.get('Title') or info['Synopsis']['Title']).strip()
description = info.get('Synopsis', {}).get('Detailed')
return self.playlist_result(entries, video_id, title, description)
@@ -122,7 +122,7 @@ class ViewsterIE(InfoExtractor):
synopsis = info.get('Synopsis', {})
# 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')
duration = int_or_none(info.get('Duration'))
timestamp = parse_iso8601(info.get('ReleaseDate'))