1
0
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:
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,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 = [{