mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-25 19:52:11 +00:00
[viewster] Strip titles
This commit is contained in:
parent
b68a2613f8
commit
c84683c88b
1 changed files with 2 additions and 2 deletions
|
@ -88,7 +88,7 @@ class ViewsterIE(InfoExtractor):
|
||||||
self.url_result(
|
self.url_result(
|
||||||
'http://www.viewster.com/movie/%s' % episode['OriginId'], 'Viewster')
|
'http://www.viewster.com/movie/%s' % episode['OriginId'], 'Viewster')
|
||||||
for episode in episodes]
|
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')
|
description = info.get('Synopsis', {}).get('Detailed')
|
||||||
return self.playlist_result(entries, video_id, title, description)
|
return self.playlist_result(entries, video_id, title, description)
|
||||||
|
|
||||||
|
@ -122,7 +122,7 @@ class ViewsterIE(InfoExtractor):
|
||||||
|
|
||||||
synopsis = info.get('Synopsis', {})
|
synopsis = info.get('Synopsis', {})
|
||||||
# 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', {}).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'))
|
||||||
|
|
Loading…
Reference in a new issue