From 50600e833dcfd6df838b65ba888838091af89fc2 Mon Sep 17 00:00:00 2001 From: Ashish Gupta <39122144+Ashish0804@users.noreply.github.com> Date: Mon, 24 Jan 2022 21:54:28 +0530 Subject: [PATCH] [ThisOldHouse] Improve Premium URL check (#2445) Closes #2443 Authored by: Ashish0804 --- yt_dlp/extractor/thisoldhouse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_dlp/extractor/thisoldhouse.py b/yt_dlp/extractor/thisoldhouse.py index 35c69a988..8a1d17311 100644 --- a/yt_dlp/extractor/thisoldhouse.py +++ b/yt_dlp/extractor/thisoldhouse.py @@ -52,7 +52,7 @@ class ThisOldHouseIE(InfoExtractor): video_url = self._search_regex( r']+src=[\'"]((?:https?:)?//(?:www\.)?thisoldhouse\.(?:chorus\.build|com)/videos/zype/([0-9a-f]{24})[^\'"]*)[\'"]', webpage, 'video url') - if 'subscription_required=true' in video_url: + if 'subscription_required=true' in video_url or 'c-entry-group-labels__image' in webpage: return self.url_result(self._request_webpage(HEADRequest(video_url), display_id).geturl(), 'Zype', display_id) video_id = self._search_regex(r'(?:https?:)?//(?:www\.)?thisoldhouse\.(?:chorus\.build|com)/videos/zype/([0-9a-f]{24})', video_url, 'video id') return self.url_result(self._ZYPE_TMPL % video_id, 'Zype', video_id)