aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsepro <sepro@sepr0.com>2024-11-17 13:32:12 +0100
committerGitHub <noreply@github.com>2024-11-17 13:32:12 +0100
commit7cecd299e4a5ef1f0f044b2fedc26f17e41f15e3 (patch)
tree5247e8f8a2d7e62d3ac29d0d30816cbc289a380b
parent52c0ffe40ad6e8404d93296f575007b05b04c686 (diff)
[ie/chaturbate] Don't break embed detection (#11565)
Bugfix for 720b3dc453c342bc2e8df7dbc0acaab4479de46c Authored by: seproDev
-rw-r--r--yt_dlp/extractor/chaturbate.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yt_dlp/extractor/chaturbate.py b/yt_dlp/extractor/chaturbate.py
index aa70f26a1..a40b7d39c 100644
--- a/yt_dlp/extractor/chaturbate.py
+++ b/yt_dlp/extractor/chaturbate.py
@@ -79,7 +79,7 @@ class ChaturbateIE(InfoExtractor):
'formats': self._extract_m3u8_formats(m3u8_url, video_id, ext='mp4', live=True),
}
- def _extract_from_webpage(self, video_id, tld):
+ def _extract_from_html(self, video_id, tld):
webpage = self._download_webpage(
f'https://chaturbate.{tld}/{video_id}/', video_id,
headers=self.geo_verification_headers(), impersonate=True)
@@ -151,4 +151,4 @@ class ChaturbateIE(InfoExtractor):
def _real_extract(self, url):
video_id, tld = self._match_valid_url(url).group('id', 'tld')
- return self._extract_from_api(video_id, tld) or self._extract_from_webpage(video_id, tld)
+ return self._extract_from_api(video_id, tld) or self._extract_from_html(video_id, tld)