mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-09-03 16:45:17 +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:
@ -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 = [{
|
||||
|
Reference in New Issue
Block a user