[thisoldhouse] Fix video id extraction (closes #13540)
authorParmjit Virk <pvirk@mts.net>
Sun, 2 Jul 2017 02:09:57 +0000 (21:09 -0500)
committerSergey M․ <dstftw@gmail.com>
Sun, 2 Jul 2017 13:04:51 +0000 (20:04 +0700)
youtube_dl/extractor/thisoldhouse.py

index 197258df141b4b6864afa0e4c1df7d0db431f64e..6a3efb9df5041385e60207bdca495f0411a0a3f8 100644 (file)
@@ -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)