Update yt_dlp/extractor/huya.py

Update regex to support both HTTP and HTTPS.

Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
This commit is contained in:
hugepower 2024-09-11 04:28:54 +08:00 committed by GitHub
parent 97615070db
commit 6baaea0178
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -139,7 +139,7 @@ def encrypt(self, params, stream_info, stream_name):
class HuyaVideoIE(InfoExtractor):
_VALID_URL = r'https://(?:www\.)?huya\.com/video/play/(?P<id>\d+)\.html'
_VALID_URL = r'https?://(?:www\.)?huya\.com/video/play/(?P<id>\d+)\.html'
IE_NAME = 'huya:video'
IE_DESC = '虎牙视频'