Skip to content

Commit

Permalink
[chaturbate] Extend _VALID_URL (#22309)
Browse files Browse the repository at this point in the history
  • Loading branch information
axelerometer authored and dstftw committed Oct 4, 2019
1 parent b64045c commit fd4db1e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions youtube_dl/extractor/chaturbate.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


class ChaturbateIE(InfoExtractor):
_VALID_URL = r'https?://(?:[^/]+\.)?chaturbate\.com/(?P<id>[^/?#]+)'
_VALID_URL = r'https?://(?:[^/]+\.)?chaturbate\.com/(?:fullvideo/?\?.*?\bb=)?(?P<id>[^/?&#]+)'
_TESTS = [{
'url': 'https://www.chaturbate.com/siswet19/',
'info_dict': {
Expand All @@ -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,
Expand All @@ -32,7 +35,8 @@ def _real_extract(self, url):
video_id = self._match_id(url)

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 = []

Expand Down

0 comments on commit fd4db1e

Please sign in to comment.