cleanup remnants from cherry-pick
This commit is contained in:
parent
a5a2487d58
commit
20556c2497
@ -16,7 +16,6 @@ from ..compat import (
|
|||||||
)
|
)
|
||||||
from ..utils import (
|
from ..utils import (
|
||||||
determine_ext,
|
determine_ext,
|
||||||
dict_get,
|
|
||||||
ExtractorError,
|
ExtractorError,
|
||||||
extract_attributes,
|
extract_attributes,
|
||||||
find_xpath_attr,
|
find_xpath_attr,
|
||||||
@ -514,7 +513,7 @@ class BrightcoveNewIE(InfoExtractor):
|
|||||||
for video in re.findall(r'(?i)(<video[^>]+>)', webpage):
|
for video in re.findall(r'(?i)(<video[^>]+>)', webpage):
|
||||||
attrs = extract_attributes(video)
|
attrs = extract_attributes(video)
|
||||||
|
|
||||||
video_id = dict_get(attrs, ['data-brightcove-video-id', 'data-video-id'])
|
video_id = attrs.get('data-video-id')
|
||||||
account_id = attrs.get('data-account')
|
account_id = attrs.get('data-account')
|
||||||
player_id = attrs.get('data-player')
|
player_id = attrs.get('data-player')
|
||||||
embed = attrs.get('data-embed')
|
embed = attrs.get('data-embed')
|
||||||
|
@ -447,27 +447,6 @@ class GenericIE(InfoExtractor):
|
|||||||
},
|
},
|
||||||
}],
|
}],
|
||||||
},
|
},
|
||||||
{
|
|
||||||
# Brightcove with metadata on one line
|
|
||||||
'url': 'http://www.bostonglobe.com/metro/2017/02/11/tree-finally-succumbs-disease-leaving-hole-neighborhood/h1b4lviqzMTIn9sVy8F3gP/story.html?',
|
|
||||||
'info_dict': {
|
|
||||||
'id': 'story',
|
|
||||||
'title': 'A tree finally succumbs to disease, leaving a hole in a neighborhood - The Boston Globe',
|
|
||||||
},
|
|
||||||
'playlist': [{
|
|
||||||
'info_dict': {
|
|
||||||
'id': '5320421710001',
|
|
||||||
'ext': 'mp4',
|
|
||||||
'title': 'A tree finally succumbs to disease, leaving a hole in a neighborhood',
|
|
||||||
'description': 'It arrived as a sapling when the Back Bay was in its infancy, a spindly American elm tamped down into a square of dirt cut into the brick sidewalk of 1880s Marlborough Street, no higher than the first bay window of the new brownstone behind it.',
|
|
||||||
'timestamp': 1486877593,
|
|
||||||
'upload_date': '20170212',
|
|
||||||
'uploader_id': '245991542',
|
|
||||||
},
|
|
||||||
}],
|
|
||||||
# HEAD requests produce 404 :(
|
|
||||||
'expected_warnings': ['404'],
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
# Alternative brightcove <video> attributes
|
# Alternative brightcove <video> attributes
|
||||||
'url': 'http://www.programme-tv.net/videos/extraits/81095-guillaume-canet-evoque-les-rumeurs-d-infidelite-de-marion-cotillard-avec-brad-pitt-dans-vivement-dimanche/',
|
'url': 'http://www.programme-tv.net/videos/extraits/81095-guillaume-canet-evoque-les-rumeurs-d-infidelite-de-marion-cotillard-avec-brad-pitt-dans-vivement-dimanche/',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user