projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b8d6193
)
[cloudy] Minor changes
author
Sergey M․
<dstftw@gmail.com>
Sat, 13 Sep 2014 22:01:25 +0000
(
05:01
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 13 Sep 2014 22:01:25 +0000
(
05:01
+0700)
youtube_dl/extractor/cloudy.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/cloudy.py
b/youtube_dl/extractor/cloudy.py
index 73c6e3d499f09ae27672444e9c5721385d70377d..95eda2e58c6c2ef761c2b487d60de42b0b36c7f0 100644
(file)
--- a/
youtube_dl/extractor/cloudy.py
+++ b/
youtube_dl/extractor/cloudy.py
@@
-8,6
+8,7
@@
from ..utils import (
ExtractorError,
compat_parse_qs,
compat_urllib_parse,
ExtractorError,
compat_parse_qs,
compat_urllib_parse,
+ remove_end,
)
)
@@
-52,13
+53,15
@@
class CloudyIE(InfoExtractor):
title = data.get('title', [None])[0]
if title:
title = data.get('title', [None])[0]
if title:
- title =
title.replace('&asdasdas', '
').strip()
+ title =
remove_end(title, '&asdasdas
').strip()
formats = []
formats = []
- formats.append({
- 'format_id': 'sd',
- 'url': data.get('url', [None])[0],
- })
+ video_url = data.get('url', [None])[0]
+ if video_url:
+ formats.append({
+ 'format_id': 'sd',
+ 'url': video_url,
+ })
return {
'id': video_id,
return {
'id': video_id,