Skip to content

Commit 50600e8

Browse files
authored
[ThisOldHouse] Improve Premium URL check (yt-dlp#2445)
Closes yt-dlp#2443 Authored by: Ashish0804
1 parent fc08bdd commit 50600e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

yt_dlp/extractor/thisoldhouse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def _real_extract(self, url):
5252
video_url = self._search_regex(
5353
r'<iframe[^>]+src=[\'"]((?:https?:)?//(?:www\.)?thisoldhouse\.(?:chorus\.build|com)/videos/zype/([0-9a-f]{24})[^\'"]*)[\'"]',
5454
webpage, 'video url')
55-
if 'subscription_required=true' in video_url:
55+
if 'subscription_required=true' in video_url or 'c-entry-group-labels__image' in webpage:
5656
return self.url_result(self._request_webpage(HEADRequest(video_url), display_id).geturl(), 'Zype', display_id)
5757
video_id = self._search_regex(r'(?:https?:)?//(?:www\.)?thisoldhouse\.(?:chorus\.build|com)/videos/zype/([0-9a-f]{24})', video_url, 'video id')
5858
return self.url_result(self._ZYPE_TMPL % video_id, 'Zype', video_id)

0 commit comments

Comments
 (0)