change dict to url_result

This commit is contained in:
dzikie drożdże 2016-01-10 05:48:59 +01:00
parent 3fb7f85dd4
commit e3225fc155

View File

@ -150,10 +150,9 @@ class TvpIE(InfoExtractor):
if 'directory_video' in item['types']:
ids.append(item['_id'])
if 'video' in item['types'] and item['is_released']:
yield {
'_type': 'url',
'title': self._guess_title(item),
'url': item['url']}
yield self.url_result(item['url'],
video_id=item['_id'],
video_title=self._guess_title(item))
def _get_playlist(self, context):
pls_id = str(context['material_id'])