mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-12-23 16:36:48 +00:00
[brightcove] Make _VALID_URL less greedy and check for empty URLs (#3541)
This commit is contained in:
parent
278143df5b
commit
b5af6fcdad
@ -23,7 +23,7 @@ from ..utils import (
|
|||||||
|
|
||||||
|
|
||||||
class BrightcoveIE(InfoExtractor):
|
class BrightcoveIE(InfoExtractor):
|
||||||
_VALID_URL = r'https?://.*brightcove\.com/(services|viewer).*\?(?P<query>.*)'
|
_VALID_URL = r'https?://.*brightcove\.com/(services|viewer).*?\?(?P<query>.*)'
|
||||||
_FEDERATED_URL_TEMPLATE = 'http://c.brightcove.com/services/viewer/htmlFederated?%s'
|
_FEDERATED_URL_TEMPLATE = 'http://c.brightcove.com/services/viewer/htmlFederated?%s'
|
||||||
|
|
||||||
_TESTS = [
|
_TESTS = [
|
||||||
@ -260,6 +260,8 @@ class BrightcoveIE(InfoExtractor):
|
|||||||
formats = []
|
formats = []
|
||||||
for rend in renditions:
|
for rend in renditions:
|
||||||
url = rend['defaultURL']
|
url = rend['defaultURL']
|
||||||
|
if not url:
|
||||||
|
continue
|
||||||
if rend['remote']:
|
if rend['remote']:
|
||||||
# This type of renditions are served through akamaihd.net,
|
# This type of renditions are served through akamaihd.net,
|
||||||
# but they don't use f4m manifests
|
# but they don't use f4m manifests
|
||||||
|
Loading…
Reference in New Issue
Block a user