from .common import InfoExtractor
from ..utils import (
+ ExtractorError,
float_or_none,
int_or_none,
parse_age_limit,
item = video_data['playlist']['items'][0]
+ videos = item.get('videos')
+
+ error_message = item.get('errorMessage')
+ if not videos and error_message:
+ raise ExtractorError(
+ '%s returned error: %s' % (self.IE_NAME, error_message), expected=True)
+
title = item['title']
description = item.get('description')
thumbnail = item.get('thumbnail')