mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-07-18 19:28:31 +00:00
[ie/bandaichannel] Remove extractor (#13152)
Closes #8829 Authored by: doe1080
This commit is contained in:
parent
6d39c420f7
commit
23e9389f93
@ -201,7 +201,6 @@
|
|||||||
BanByeChannelIE,
|
BanByeChannelIE,
|
||||||
BanByeIE,
|
BanByeIE,
|
||||||
)
|
)
|
||||||
from .bandaichannel import BandaiChannelIE
|
|
||||||
from .bandcamp import (
|
from .bandcamp import (
|
||||||
BandcampAlbumIE,
|
BandcampAlbumIE,
|
||||||
BandcampIE,
|
BandcampIE,
|
||||||
|
@ -1,33 +0,0 @@
|
|||||||
from .brightcove import BrightcoveNewBaseIE
|
|
||||||
from ..utils import extract_attributes
|
|
||||||
|
|
||||||
|
|
||||||
class BandaiChannelIE(BrightcoveNewBaseIE):
|
|
||||||
IE_NAME = 'bandaichannel'
|
|
||||||
_VALID_URL = r'https?://(?:www\.)?b-ch\.com/titles/(?P<id>\d+/\d+)'
|
|
||||||
_TESTS = [{
|
|
||||||
'url': 'https://www.b-ch.com/titles/514/001',
|
|
||||||
'md5': 'a0f2d787baa5729bed71108257f613a4',
|
|
||||||
'info_dict': {
|
|
||||||
'id': '6128044564001',
|
|
||||||
'ext': 'mp4',
|
|
||||||
'title': 'メタルファイターMIKU 第1話',
|
|
||||||
'timestamp': 1580354056,
|
|
||||||
'uploader_id': '5797077852001',
|
|
||||||
'upload_date': '20200130',
|
|
||||||
'duration': 1387.733,
|
|
||||||
},
|
|
||||||
'params': {
|
|
||||||
'skip_download': True,
|
|
||||||
},
|
|
||||||
}]
|
|
||||||
|
|
||||||
def _real_extract(self, url):
|
|
||||||
video_id = self._match_id(url)
|
|
||||||
webpage = self._download_webpage(url, video_id)
|
|
||||||
attrs = extract_attributes(self._search_regex(
|
|
||||||
r'(<video-js[^>]+\bid="bcplayer"[^>]*>)', webpage, 'player'))
|
|
||||||
bc = self._download_json(
|
|
||||||
'https://pbifcd.b-ch.com/v1/playbackinfo/ST/70/' + attrs['data-info'],
|
|
||||||
video_id, headers={'X-API-KEY': attrs['data-auth'].strip()})['bc']
|
|
||||||
return self._parse_brightcove_metadata(bc, bc['id'])
|
|
@ -53,6 +53,7 @@ class KnownDRMIE(UnsupportedInfoExtractor):
|
|||||||
r'(?:beta\.)?crunchyroll\.com',
|
r'(?:beta\.)?crunchyroll\.com',
|
||||||
r'viki\.com',
|
r'viki\.com',
|
||||||
r'deezer\.com',
|
r'deezer\.com',
|
||||||
|
r'b-ch\.com',
|
||||||
)
|
)
|
||||||
|
|
||||||
_TESTS = [{
|
_TESTS = [{
|
||||||
@ -168,6 +169,9 @@ class KnownDRMIE(UnsupportedInfoExtractor):
|
|||||||
}, {
|
}, {
|
||||||
'url': 'http://www.deezer.com/playlist/176747451',
|
'url': 'http://www.deezer.com/playlist/176747451',
|
||||||
'only_matching': True,
|
'only_matching': True,
|
||||||
|
}, {
|
||||||
|
'url': 'https://www.b-ch.com/titles/8203/001',
|
||||||
|
'only_matching': True,
|
||||||
}]
|
}]
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
|
Loading…
Reference in New Issue
Block a user