Set explore and discovery item as non-capture group

Co-authored-by: N/Ame <173015200+grqz@users.noreply.github.com>
This commit is contained in:
HobbyistDev 2024-12-14 06:52:54 +08:00 committed by GitHub
parent c13574ea8a
commit 1aab655030
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -10,7 +10,7 @@ from ..utils.traversal import traverse_obj
class XiaoHongShuIE(InfoExtractor): class XiaoHongShuIE(InfoExtractor):
_VALID_URL = r'https?://www\.xiaohongshu\.com/(explore|discovery/item)/(?P<id>[\da-f]+)' _VALID_URL = r'https?://www\.xiaohongshu\.com/(?:explore|discovery/item)/(?P<id>[\da-f]+)'
IE_DESC = '小红书' IE_DESC = '小红书'
_TESTS = [{ _TESTS = [{
'url': 'https://www.xiaohongshu.com/explore/6411cf99000000001300b6d9', 'url': 'https://www.xiaohongshu.com/explore/6411cf99000000001300b6d9',