1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-05 02:32:44 +01:00

[thisoldhouse] Fix video id extraction (closes #13540)

This commit is contained in:
Parmjit Virk 2017-07-01 21:09:57 -05:00 committed by Sergey M․
parent 02d61a65e2
commit a3a6d01a96
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D

View File

@ -31,5 +31,5 @@ def _real_extract(self, url):
drupal_settings = self._parse_json(self._search_regex(
r'jQuery\.extend\(Drupal\.settings\s*,\s*({.+?})\);',
webpage, 'drupal settings'), display_id)
video_id = drupal_settings['jwplatform']['video_id']
video_id = list(drupal_settings['comScore'])[0]
return self.url_result('jwplatform:' + video_id, 'JWPlatform', video_id)