Browse Source

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

master
Parmjit Virk 7 years ago
committed by Sergey M․
parent
commit
a3a6d01a96
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
1 changed files with 1 additions and 1 deletions
  1. 2
      youtube_dl/extractor/thisoldhouse.py

2
youtube_dl/extractor/thisoldhouse.py

@ -31,5 +31,5 @@ class ThisOldHouseIE(InfoExtractor):
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)
Loading…
Cancel
Save