Update yt_dlp/extractor/chaturbate.py

Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
This commit is contained in:
manav_chaudhary 2024-07-29 20:29:10 +05:30 committed by GitHub
parent c6146dd20a
commit ccab4e657c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -34,9 +34,7 @@ class ChaturbateIE(InfoExtractor):
_ROOM_OFFLINE = 'Room is currently offline'
def _real_extract(self, url):
mobj = self._match_valid_url(url)
video_id = mobj.group('id')
domain = mobj.group('domain')
video_id, tld = self._match_valid_url(url).group('id', 'tld')
webpage = self._download_webpage(
f'https://chaturbate.{domain}/{video_id}/', video_id,