from .common import InfoExtractor
from ..utils import (
+ ExtractorError,
int_or_none,
)
webpage, 'data json')
data = json.loads(data_json)
vdata = data['video']
+ if not vdata:
+ vdata = data['videos'][0]
+ if not vdata:
+ raise ExtractorError('Cannot find video data')
video_id = vdata['id']
title = vdata['headline']