From c84683c88bbcb3cfd8d27af54a418035f431371d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sergey=20M=E2=80=A4?= Date: Wed, 22 Jul 2015 02:08:25 +0600 Subject: [PATCH] [viewster] Strip titles --- youtube_dl/extractor/viewster.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/youtube_dl/extractor/viewster.py b/youtube_dl/extractor/viewster.py index 03c873608..6ef36290b 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')) -- 2.22.2