mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-01-04 04:29:37 +01: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:
parent
f96a3fb7d3
commit
f5a9e9df0d
4 changed files with 403 additions and 404 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import json
|
||||
import re
|
||||
|
||||
from .brightcove import BrightcoveNewIE
|
||||
from .brightcove import BrightcoveNewBaseIE
|
||||
from ..compat import (
|
||||
compat_HTTPError,
|
||||
compat_str,
|
||||
|
|
@ -13,7 +13,7 @@ from ..utils import (
|
|||
)
|
||||
|
||||
|
||||
class SevenPlusIE(BrightcoveNewIE): # XXX: Do not subclass from concrete IE
|
||||
class SevenPlusIE(BrightcoveNewBaseIE):
|
||||
IE_NAME = '7plus'
|
||||
_VALID_URL = r'https?://(?:www\.)?7plus\.com\.au/(?P<path>[^?]+\?.*?\bepisode-id=(?P<id>[^&#]+))'
|
||||
_TESTS = [{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue