1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-10 20:17:25 +08:00

[soundgasm] adjust _VALID_URL

This commit is contained in:
Jona Abdinghoff 2018-12-19 02:39:12 +01:00 committed by GitHub
parent 7642b142b4
commit ee8e4aac78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,7 +8,7 @@ from .common import InfoExtractor
class SoundgasmIE(InfoExtractor):
IE_NAME = 'soundgasm'
_VALID_URL = r'(?P<archive>https?://web\.archive\.org/web/\d+/)?' + \
_VALID_URL = r'(?P<archive>https?://web\.archive\.org/web/\d+(?:if_)?/)?' + \
r'https?://(?:www\.)?soundgasm\.net(?::80)?/u/' + \
r'(?P<user>[0-9a-zA-Z_-]+)/(?P<display_id>[0-9a-zA-Z_-]+)'
_TESTS = [{
@ -74,7 +74,7 @@ class SoundgasmIE(InfoExtractor):
class SoundgasmProfileIE(InfoExtractor):
IE_NAME = 'soundgasm:profile'
_VALID_URL = r'(?P<archive>https?://web\.archive\.org/web/\d+/)?' + \
_VALID_URL = r'(?P<archive>https?://web\.archive\.org/web/\d+(?:if_)?/)?' + \
r'https?://(?:www\.)?soundgasm\.net/u/' + \
r'(?P<id>[^/]+)/?(?:\#.*)?$'
_TESTS = [{