1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-10-30 14:15:13 +00:00

[extractor/brightcove] Add BrightcoveNewBaseIE and fix embed extraction (#5558)

* Move Brightcove embed extraction and tests into the IEs
* Split `BrightcoveNewBaseIE` from `BrightcoveNewIE`
* Fix bug in ade1fa70cb with the "wrong" spelling of `referrer` being smuggled

Closes #5539
This commit is contained in:
bashonly
2022-11-17 19:11:35 +00:00
committed by GitHub
parent f96a3fb7d3
commit f5a9e9df0d
4 changed files with 403 additions and 404 deletions

View File

@@ -1,8 +1,8 @@
from .brightcove import BrightcoveNewIE
from .brightcove import BrightcoveNewBaseIE
from ..utils import extract_attributes
class BandaiChannelIE(BrightcoveNewIE): # XXX: Do not subclass from concrete IE
class BandaiChannelIE(BrightcoveNewBaseIE):
IE_NAME = 'bandaichannel'
_VALID_URL = r'https?://(?:www\.)?b-ch\.com/titles/(?P<id>\d+/\d+)'
_TESTS = [{