1
0
mirror of https://github.com/yt-dlp/yt-dlp synced 2025-04-04 06:00:15 -05:00

[ie/NBCStations] Fix extractor (#12534)

Authored by: refack
This commit is contained in:
Refael Ackermann 2025-03-16 17:41:32 -04:00 committed by GitHub
parent 4815dac131
commit ebac65aa9e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -736,7 +736,7 @@ class NBCStationsIE(InfoExtractor):
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,)', webpage, 'NBC JSON data', video_id)
pdk_acct = nbc_data.get('pdkAcct') or 'Yh1nAC'
fw_ssid = traverse_obj(nbc_data, ('video', 'fwSSID'))