Skip to content

Commit

Permalink
[ie/chaturbate] Don't break embed detection (yt-dlp#11565)
Browse files Browse the repository at this point in the history
Bugfix for 720b3dc

Authored by: seproDev
  • Loading branch information
seproDev authored Nov 17, 2024
1 parent 52c0ffe commit 7cecd29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yt_dlp/extractor/chaturbate.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def _extract_from_api(self, video_id, tld):
'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)
Expand Down Expand Up @@ -151,4 +151,4 @@ def _extract_from_webpage(self, video_id, tld):

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)

0 comments on commit 7cecd29

Please sign in to comment.