aboutsummaryrefslogtreecommitdiff
path: root/yt_dlp/extractor/bitwave.py
diff options
context:
space:
mode:
authorsepro <4618135+seproDev@users.noreply.github.com>2023-11-26 04:09:59 +0100
committerGitHub <noreply@github.com>2023-11-26 03:09:59 +0000
commit9751a457cfdb18bf99d9ee0d10e4e6a594502bbf (patch)
tree72d8f0b497ec27b3bfafc64194ec3882ee1c5a49 /yt_dlp/extractor/bitwave.py
parent5a230233d6fce06f4abd1fce0dc92b948e6f780b (diff)
[cleanup] Remove dead extractors (#8604)
Closes #1609, Closes #3232, Closes #4763, Closes #6026, Closes #6322, Closes #7912 Authored by: seproDev
Diffstat (limited to 'yt_dlp/extractor/bitwave.py')
-rw-r--r--yt_dlp/extractor/bitwave.py58
1 files changed, 0 insertions, 58 deletions
diff --git a/yt_dlp/extractor/bitwave.py b/yt_dlp/extractor/bitwave.py
deleted file mode 100644
index a82cd263a..000000000
--- a/yt_dlp/extractor/bitwave.py
+++ /dev/null
@@ -1,58 +0,0 @@
-from .common import InfoExtractor
-
-
-class BitwaveReplayIE(InfoExtractor):
- IE_NAME = 'bitwave:replay'
- _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):
- replay_id = self._match_id(url)
- replay = self._download_json(
- 'https://api.bitwave.tv/v1/replays/' + replay_id,
- replay_id
- )
-
- return {
- 'id': replay_id,
- 'title': replay['data']['title'],
- 'uploader': replay['data']['name'],
- 'uploader_id': replay['data']['name'],
- 'url': replay['data']['url'],
- 'thumbnails': [
- {'url': x} for x in replay['data']['thumbnails']
- ],
- }
-
-
-class BitwaveStreamIE(InfoExtractor):
- IE_NAME = 'bitwave:stream'
- _VALID_URL = r'https?://(?:www\.)?bitwave\.tv/(?P<id>\w+)/?$'
- _TEST = {
- 'url': 'https://bitwave.tv/doomtube',
- 'only_matching': True
- }
-
- def _real_extract(self, url):
- username = self._match_id(url)
- channel = self._download_json(
- 'https://api.bitwave.tv/v1/channels/' + username,
- username)
-
- formats = self._extract_m3u8_formats(
- channel['data']['url'], username,
- 'mp4')
-
- return {
- 'id': username,
- 'title': channel['data']['title'],
- 'uploader': username,
- 'uploader_id': username,
- 'formats': formats,
- 'thumbnail': channel['data']['thumbnail'],
- 'is_live': True,
- 'view_count': channel['data']['viewCount']
- }