mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-03-09 12:50:23 -05:00
[ie/NBCStations]allow for new nbc_data syntax
This commit is contained in:
parent
9d70abe4de
commit
0500ead9bb
1 changed files with 1 additions and 1 deletions
|
@ -736,7 +736,7 @@ def _real_extract(self, url):
|
|||
webpage = self._download_webpage(url, video_id)
|
||||
|
||||
nbc_data = self._search_json(
|
||||
r'<script>\s*var\s+nbc\s*=', webpage, 'NBC JSON data', video_id)
|
||||
r'<script>(?:\s*var\s+nbc\s*=|.+?Object\.assign\(nbc,\s*)', webpage, 'NBC JSON data', video_id)
|
||||
pdk_acct = nbc_data.get('pdkAcct') or 'Yh1nAC'
|
||||
fw_ssid = traverse_obj(nbc_data, ('video', 'fwSSID'))
|
||||
|
||||
|
|
Loading…
Reference in a new issue