1
0
Fork 0
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:
Refael Ackermann 2025-03-04 16:38:09 -05:00
parent 9d70abe4de
commit 0500ead9bb

View file

@ -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'))