]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[thisoldhouse] Recognize /tv-episode/ URLs and update _TESTS
authorYen Chi Hsuan <yan12125@gmail.com>
Thu, 1 Dec 2016 06:56:52 +0000 (14:56 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Thu, 1 Dec 2016 06:56:52 +0000 (14:56 +0800)
Closes #11271

ChangeLog
youtube_dl/extractor/thisoldhouse.py

index a91de7b63d91b99d606be44cb27e4e72f4e251b2..bf5f2694318cd8bc96d48f2f9ee6d1c09a5781e8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+version <unreleased>
+
+Extractors
++ [thisoldhouse] Recognize /tv-episode/ URLs (#11271)
+
 version 2016.12.01
 
 Extractors
index 7629f0d10e4ebc40bf25b0f02f52b2524ab9e303..197258df141b4b6864afa0e4c1df7d0db431f64e 100644 (file)
@@ -5,10 +5,10 @@ from .common import InfoExtractor
 
 
 class ThisOldHouseIE(InfoExtractor):
-    _VALID_URL = r'https?://(?:www\.)?thisoldhouse\.com/(?:watch|how-to)/(?P<id>[^/?#]+)'
+    _VALID_URL = r'https?://(?:www\.)?thisoldhouse\.com/(?:watch|how-to|tv-episode)/(?P<id>[^/?#]+)'
     _TESTS = [{
         'url': 'https://www.thisoldhouse.com/how-to/how-to-build-storage-bench',
-        'md5': '568acf9ca25a639f0c4ff905826b662f',
+        'md5': '946f05bbaa12a33f9ae35580d2dfcfe3',
         'info_dict': {
             'id': '2REGtUDQ',
             'ext': 'mp4',
@@ -20,6 +20,9 @@ class ThisOldHouseIE(InfoExtractor):
     }, {
         'url': 'https://www.thisoldhouse.com/watch/arlington-arts-crafts-arts-and-crafts-class-begins',
         'only_matching': True,
+    }, {
+        'url': 'https://www.thisoldhouse.com/tv-episode/ask-toh-shelf-rough-electric',
+        'only_matching': True,
     }]
 
     def _real_extract(self, url):