mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-11 02:17:21 +08:00
[soundgasm] adjust _VALID_URL
This commit is contained in:
parent
7642b142b4
commit
ee8e4aac78
@ -8,7 +8,7 @@ from .common import InfoExtractor
|
|||||||
|
|
||||||
class SoundgasmIE(InfoExtractor):
|
class SoundgasmIE(InfoExtractor):
|
||||||
IE_NAME = 'soundgasm'
|
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'https?://(?:www\.)?soundgasm\.net(?::80)?/u/' + \
|
||||||
r'(?P<user>[0-9a-zA-Z_-]+)/(?P<display_id>[0-9a-zA-Z_-]+)'
|
r'(?P<user>[0-9a-zA-Z_-]+)/(?P<display_id>[0-9a-zA-Z_-]+)'
|
||||||
_TESTS = [{
|
_TESTS = [{
|
||||||
@ -74,7 +74,7 @@ class SoundgasmIE(InfoExtractor):
|
|||||||
|
|
||||||
class SoundgasmProfileIE(InfoExtractor):
|
class SoundgasmProfileIE(InfoExtractor):
|
||||||
IE_NAME = 'soundgasm:profile'
|
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'https?://(?:www\.)?soundgasm\.net/u/' + \
|
||||||
r'(?P<id>[^/]+)/?(?:\#.*)?$'
|
r'(?P<id>[^/]+)/?(?:\#.*)?$'
|
||||||
_TESTS = [{
|
_TESTS = [{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user