Black screen in browsers.
youtube-dl reports:
[brightcove:legacy] ref:event-stream-356: Downloading webpage
ERROR: brightcove said: This player is not enabled for access without key.
I really reget not being able to use this compact syntax, as well as to align
with spaces:
if not account_id: account_id = attrs.get('data-account')
if not player_id: player_id = attrs.get('data-player')
if not embed: embed = attrs.get('data-embed')
but it really upsets flake8:
brightcove.py:519:30: E701 multiple statements on one line (colon)
brightcove.py:519:42: E221 multiple spaces before operator
brightcove.py:520:29: E701 multiple statements on one line (colon)
brightcove.py:520:30: E241 multiple spaces after ':'
brightcove.py:520:41: E221 multiple spaces before operator
brightcove.py:521:25: E701 multiple statements on one line (colon)
brightcove.py:521:26: E241 multiple spaces after ':'
brightcove.py:521:37: E221 multiple spaces before operator
Per @yan12125.
Instead of searching for <video> followed by <script>, now
search for <video> optionally followed by <script>. If we
find <script>, use it. Otherwise, extract_attributes() from the video
tag and use those.
Move stripping the 'ref': prefix of data-video-id="ref:12345" out of
regexp into code, since we now use extract_attributes().
Per @yan12125, use extract_attributes() since order may differ.
While preferring data-brightcove-video-id, use data-video-id if present,
to support #12005.
BrightcoveNewIE.extract_urls(): Handle player data when it is all in
attributes of the <video> tag, and also the id is
data-brightcove-video-id not data-video-id.
Add test to generic extractor, note HEAD gives 404, no checksum computed(?).
- use FFmpeg downloader to download m3u8 formats extracted
from BrightcoveNew(some of the m3u8 media playlists use AES-128)
- update comment and update_url_query to handle url query