From 4afdcdfddfc672cb07ae209b0d951b41bd3edd11 Mon Sep 17 00:00:00 2001 From: Aksel Eromeeter <54915681+axelerometer@users.noreply.github.com> Date: Thu, 5 Sep 2019 00:32:04 +0300 Subject: [PATCH 1/3] [chaturbate] Allow alternative URLs at /fullvideo/ --- youtube_dl/extractor/chaturbate.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/youtube_dl/extractor/chaturbate.py b/youtube_dl/extractor/chaturbate.py index e2b828d8a..632a1ed10 100644 --- a/youtube_dl/extractor/chaturbate.py +++ b/youtube_dl/extractor/chaturbate.py @@ -7,7 +7,7 @@ from ..utils import ExtractorError class ChaturbateIE(InfoExtractor): - _VALID_URL = r'https?://(?:[^/]+\.)?chaturbate\.com/(?P[^/?#]+)' + _VALID_URL = r'^https?://(?:[^/]+\.)?chaturbate\.com/(?:fullvideo/\?b=)?(?P[^/?&#]+)' _TESTS = [{ 'url': 'https://www.chaturbate.com/siswet19/', 'info_dict': { @@ -21,6 +21,9 @@ class ChaturbateIE(InfoExtractor): 'skip_download': True, }, 'skip': 'Room is offline', + }, { + 'url': 'https://chaturbate.com/fullvideo/?b=caylin', + 'only_matching': True, }, { 'url': 'https://en.chaturbate.com/siswet19/', 'only_matching': True, @@ -30,6 +33,7 @@ class ChaturbateIE(InfoExtractor): def _real_extract(self, url): video_id = self._match_id(url) + url = 'https://chaturbate.com/%s/' % video_id webpage = self._download_webpage( url, video_id, headers=self.geo_verification_headers()) From d922d566594968f97c50c827120a4bd6b79741d6 Mon Sep 17 00:00:00 2001 From: Sergey M Date: Fri, 4 Oct 2019 19:19:32 +0700 Subject: [PATCH 2/3] Update chaturbate.py --- youtube_dl/extractor/chaturbate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/chaturbate.py b/youtube_dl/extractor/chaturbate.py index 632a1ed10..aee16c824 100644 --- a/youtube_dl/extractor/chaturbate.py +++ b/youtube_dl/extractor/chaturbate.py @@ -7,7 +7,7 @@ from ..utils import ExtractorError class ChaturbateIE(InfoExtractor): - _VALID_URL = r'^https?://(?:[^/]+\.)?chaturbate\.com/(?:fullvideo/\?b=)?(?P[^/?&#]+)' + _VALID_URL = r'https?://(?:[^/]+\.)?chaturbate\.com/(?:fullvideo/?\?.*?\bb=)?(?P[^/?&#]+)' _TESTS = [{ 'url': 'https://www.chaturbate.com/siswet19/', 'info_dict': { From 918ee67f7194f12c18d86600907fab3ad93fd1ac Mon Sep 17 00:00:00 2001 From: Sergey M Date: Fri, 4 Oct 2019 19:21:24 +0700 Subject: [PATCH 3/3] Update chaturbate.py --- youtube_dl/extractor/chaturbate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/youtube_dl/extractor/chaturbate.py b/youtube_dl/extractor/chaturbate.py index aee16c824..656e715ae 100644 --- a/youtube_dl/extractor/chaturbate.py +++ b/youtube_dl/extractor/chaturbate.py @@ -33,10 +33,10 @@ class ChaturbateIE(InfoExtractor): def _real_extract(self, url): video_id = self._match_id(url) - url = 'https://chaturbate.com/%s/' % video_id webpage = self._download_webpage( - url, video_id, headers=self.geo_verification_headers()) + 'https://chaturbate.com/%s/' % video_id, video_id, + headers=self.geo_verification_headers()) m3u8_urls = []