mirror of https://github.com/yt-dlp/yt-dlp.git
[bitwave.tv] add test
This commit is contained in:
parent
d9c2b0a6de
commit
ae7c01431d
|
@ -6,6 +6,10 @@ from .common import InfoExtractor
|
||||||
class BitwaveReplayIE(InfoExtractor):
|
class BitwaveReplayIE(InfoExtractor):
|
||||||
IE_NAME = 'bitwave:replay'
|
IE_NAME = 'bitwave:replay'
|
||||||
_VALID_URL = r'https?://(?:www\.)?bitwave\.tv/(?P<user>\w+)/replay/(?P<id>\w+)/?$'
|
_VALID_URL = r'https?://(?:www\.)?bitwave\.tv/(?P<user>\w+)/replay/(?P<id>\w+)/?$'
|
||||||
|
_TEST = {
|
||||||
|
'url': 'https://bitwave.tv/RhythmicCarnage/replay/z4P6eq5L7WDrM85UCrVr',
|
||||||
|
'only_matching': True
|
||||||
|
}
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
replay_id = self._match_id(url)
|
replay_id = self._match_id(url)
|
||||||
|
@ -29,6 +33,10 @@ class BitwaveReplayIE(InfoExtractor):
|
||||||
class BitwaveStreamIE(InfoExtractor):
|
class BitwaveStreamIE(InfoExtractor):
|
||||||
IE_NAME = 'bitwave:stream'
|
IE_NAME = 'bitwave:stream'
|
||||||
_VALID_URL = r'https?://(?:www\.)?bitwave\.tv/(?P<id>\w+)/?$'
|
_VALID_URL = r'https?://(?:www\.)?bitwave\.tv/(?P<id>\w+)/?$'
|
||||||
|
_TEST = {
|
||||||
|
'url': 'https://bitwave.tv/doomtube',
|
||||||
|
'only_matching': True
|
||||||
|
}
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
username = self._match_id(url)
|
username = self._match_id(url)
|
||||||
|
|
Loading…
Reference in New Issue