-# coding: utf-8
-from __future__ import unicode_literals
-
from .common import InfoExtractor
-from ..compat import compat_str
from ..utils import (
- parse_iso8601,
- int_or_none,
ExtractorError,
+ int_or_none,
+ parse_iso8601,
)
'timestamp': 1450429239,
'upload_date': '20151218',
'comment_count': int,
- }
+ },
}]
def _real_extract(self, url):
if post['slug'] == display_id:
return {
'_type': 'url_transparent',
- 'url': 'jwplatform:%s' % post['fov_videoid'],
- 'id': compat_str(post['ID']),
+ 'url': 'jwplatform:{}'.format(post['fov_videoid']),
+ 'id': str(post['ID']),
'display_id': display_id,
'title': post['title'],
'description': post.get('excerpt'),