mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-29 16:54:08 +00:00
[brightcove] Add a truncated URL warning message (#3571)
This commit is contained in:
parent
a3db22ebdf
commit
6857590059
1 changed files with 5 additions and 1 deletions
|
@ -188,9 +188,13 @@ def _real_extract(self, url):
|
|||
referer = smuggled_data.get('Referer', url)
|
||||
return self._get_video_info(
|
||||
videoPlayer[0], query_str, query, referer=referer)
|
||||
else:
|
||||
elif 'playerKey' in query:
|
||||
player_key = query['playerKey']
|
||||
return self._get_playlist_info(player_key[0])
|
||||
else:
|
||||
raise ExtractorError(
|
||||
'Cannot find playerKey= variable. Did you forget quotes in a shell invocation?',
|
||||
expected=True)
|
||||
|
||||
def _get_video_info(self, video_id, query_str, query, referer=None):
|
||||
request_url = self._FEDERATED_URL_TEMPLATE % query_str
|
||||
|
|
Loading…
Reference in a new issue