aboutsummaryrefslogtreecommitdiffhomepage
path: root/youtube_dl/extractor/thisoldhouse.py
diff options
context:
space:
mode:
authorYen Chi Hsuan <[email protected]>2016-12-01 14:56:52 +0800
committerYen Chi Hsuan <[email protected]>2016-12-01 14:56:52 +0800
commitd17bfe4095a10bc52402e17d088c66e86f5f0bde (patch)
tree716c26236d1fb8ab42d8fab6554c5a6111228479 /youtube_dl/extractor/thisoldhouse.py
parent98b08f94b15930e359fa0d85834d7e9651ce6445 (diff)
downloadyoutube-dl-d17bfe4095a10bc52402e17d088c66e86f5f0bde.tar.gz
youtube-dl-d17bfe4095a10bc52402e17d088c66e86f5f0bde.zip
[thisoldhouse] Recognize /tv-episode/ URLs and update _TESTS
Closes #11271
Diffstat (limited to 'youtube_dl/extractor/thisoldhouse.py')
-rw-r--r--youtube_dl/extractor/thisoldhouse.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/youtube_dl/extractor/thisoldhouse.py b/youtube_dl/extractor/thisoldhouse.py
index 7629f0d10..197258df1 100644
--- a/youtube_dl/extractor/thisoldhouse.py
+++ b/youtube_dl/extractor/thisoldhouse.py
@@ -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):