projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b68a261
)
[viewster] Strip titles
author
Sergey M․
<dstftw@gmail.com>
Tue, 21 Jul 2015 20:08:25 +0000
(
02:08
+0600)
committer
Sergey M․
<dstftw@gmail.com>
Tue, 21 Jul 2015 20:08:25 +0000
(
02:08
+0600)
youtube_dl/extractor/viewster.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/viewster.py
b/youtube_dl/extractor/viewster.py
index 03c8736085d4701c6abc762973176280526d9bd6..6ef36290b417a846bb2a6f36cc80fd2a6e59e105 100644
(file)
--- 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]
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)
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
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'))
description = synopsis.get('Detailed') or info.get('Synopsis', {}).get('Short')
duration = int_or_none(info.get('Duration'))
timestamp = parse_iso8601(info.get('ReleaseDate'))