-# coding: utf-8
-from __future__ import unicode_literals
-
import base64
from .common import InfoExtractor
from ..compat import (
- compat_urllib_parse_urlencode,
compat_str,
+ compat_urllib_parse_urlencode,
)
from ..utils import (
+ format_field,
int_or_none,
parse_iso8601,
smuggle_url,
return {
'id': video_id,
- 'title': self._live_title(title) if is_live else title,
+ 'title': title,
'description': video_data.get('description_en') or video_data.get('description_ar'),
- 'thumbnail': 'http://admin.mangomolo.com/analytics/%s' % img if img else None,
+ 'thumbnail': format_field(img, None, 'http://admin.mangomolo.com/analytics/%s'),
'duration': int_or_none(video_data.get('duration')),
'timestamp': parse_iso8601(video_data.get('create_time'), ' '),
'is_live': is_live,