From 0894b2937d6706e767d18a402b0e5cd9422da727 Mon Sep 17 00:00:00 2001 From: Parmjit Virk Date: Sat, 1 Jul 2017 21:09:57 -0500 Subject: [PATCH 1/2] [ThisOldHouse] Fetch VideoId from updated JSON data --- youtube_dl/extractor/thisoldhouse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/thisoldhouse.py b/youtube_dl/extractor/thisoldhouse.py index 197258df1..6a3efb9df 100644 --- a/youtube_dl/extractor/thisoldhouse.py +++ b/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) From 13ec5aad7b413606855ddb830b9db1a0035ab2d2 Mon Sep 17 00:00:00 2001 From: Parmjit Virk Date: Sat, 1 Jul 2017 21:11:58 -0500 Subject: [PATCH 2/2] [ThisOldHouse] Revert MD5 for _TESTS --- youtube_dl/extractor/thisoldhouse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/thisoldhouse.py b/youtube_dl/extractor/thisoldhouse.py index 6a3efb9df..0c321354f 100644 --- a/youtube_dl/extractor/thisoldhouse.py +++ b/youtube_dl/extractor/thisoldhouse.py @@ -8,7 +8,7 @@ class ThisOldHouseIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?thisoldhouse\.com/(?:watch|how-to|tv-episode)/(?P[^/?#]+)' _TESTS = [{ 'url': 'https://www.thisoldhouse.com/how-to/how-to-build-storage-bench', - 'md5': '946f05bbaa12a33f9ae35580d2dfcfe3', + 'md5': '568acf9ca25a639f0c4ff905826b662f', 'info_dict': { 'id': '2REGtUDQ', 'ext': 'mp4',