fix _VALID_URL

Authored by: bashonly
This commit is contained in:
bashonly 2025-05-02 21:16:29 -05:00
parent ea87bb66e2
commit 260c331cc7
No known key found for this signature in database
GPG Key ID: 783F096F253D15B0

View File

@ -25,7 +25,7 @@ from ..utils.traversal import traverse_obj
class BitChuteIE(InfoExtractor):
_VALID_URL = r'https?://(?:(?:www|old)\.)?bitchute\.com/(?:video|embed|torrent/[^/]+)/(?P<id>[^/?#&]+)'
_VALID_URL = r'https?://(?:(?:www|old)\.)?bitchute\.com/(?:video|embed|torrent/[^/?#]+)/(?P<id>[^/?#&]+)'
_EMBED_REGEX = [rf'<(?:script|iframe)[^>]+\bsrc=(["\'])(?P<url>{_VALID_URL})']
_TESTS = [{
'url': 'https://www.bitchute.com/video/UGlrF9o9b-Q/',