article_id = self._match_id(url)
webpage = self._download_webpage(url, article_id)
info = self._search_json(
- r'<script>\s*window.App\s*=\s*', webpage, 'json', article_id,
+ r'<script>\s*window.App\s*=', webpage, 'json', article_id,
transform_source=js_to_json)
props = traverse_obj(info, (
'state', 'articles', ..., 'items', (('main_media', 'properties'), ('body', ..., 'properties'))))
video_ids = traverse_obj(props, (lambda _, v: v['provider'] == 'jwplayer', 'id'))
return self.playlist_from_matches(
- video_ids, article_id, ie='JWPlatform', getter=lambda id: f'jwplatform:{id}',
+ video_ids, article_id, ie='JWPlatform', getter=lambda video_id: f'jwplatform:{video_id}',
title=traverse_obj(info, ('state', 'articles', ..., 'items', 'canonical_title'), get_all=False))