[cloudy] Minor changes

This commit is contained in:
Sergey M․ 2014-09-14 05:01:25 +07:00
parent b8d61935a0
commit 5dbf3b5c60

View File

@ -8,6 +8,7 @@ from ..utils import (
ExtractorError, ExtractorError,
compat_parse_qs, compat_parse_qs,
compat_urllib_parse, compat_urllib_parse,
remove_end,
) )
@ -52,12 +53,14 @@ class CloudyIE(InfoExtractor):
title = data.get('title', [None])[0] title = data.get('title', [None])[0]
if title: if title:
title = title.replace('&asdasdas', '').strip() title = remove_end(title, '&asdasdas').strip()
formats = [] formats = []
video_url = data.get('url', [None])[0]
if video_url:
formats.append({ formats.append({
'format_id': 'sd', 'format_id': 'sd',
'url': data.get('url', [None])[0], 'url': video_url,
}) })
return { return {