From 09f61c97f55ce102b5fd8b259544179b442f303b Mon Sep 17 00:00:00 2001 From: manavchaudhary1 Date: Mon, 29 Jul 2024 20:02:03 +0530 Subject: [PATCH] Added Support for .eu and .global extentions --- yt_dlp/extractor/chaturbate.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/yt_dlp/extractor/chaturbate.py b/yt_dlp/extractor/chaturbate.py index b49f741efa..3d5257d843 100644 --- a/yt_dlp/extractor/chaturbate.py +++ b/yt_dlp/extractor/chaturbate.py @@ -9,7 +9,7 @@ from ..utils import ( class ChaturbateIE(InfoExtractor): - _VALID_URL = r'https?://(?:[^/]+\.)?chaturbate\.com/(?:fullvideo/?\?.*?\bb=)?(?P[^/?&#]+)' + _VALID_URL = r'https?://(?:[^/]+\.)?chaturbate\.(?Pcom|eu|global)/(?:>fullvideo/?\?.*?\bb=)?(?P[^/?&#]+)' _TESTS = [{ 'url': 'https://www.chaturbate.com/siswet19/', 'info_dict': { @@ -34,10 +34,12 @@ class ChaturbateIE(InfoExtractor): _ROOM_OFFLINE = 'Room is currently offline' def _real_extract(self, url): - video_id = self._match_id(url) + mobj = self._match_valid_url(url) + video_id = mobj.group('id') + domain = mobj.group('domain') webpage = self._download_webpage( - f'https://chaturbate.com/{video_id}/', video_id, + f'https://chaturbate.{domain}/{video_id}/', video_id, headers=self.geo_verification_headers()) found_m3u8_urls = []