mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-06-16 16:34:09 +00:00
[ie/xinpianchang] Fix extractor (#13245)
Closes #12737 Authored by: garret1317
This commit is contained in:
parent
00b1bec552
commit
83fabf3524
@ -45,7 +45,7 @@ class XinpianchangIE(InfoExtractor):
|
|||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
video_id = self._match_id(url)
|
video_id = self._match_id(url)
|
||||||
webpage = self._download_webpage(url, video_id=video_id)
|
webpage = self._download_webpage(url, video_id=video_id, headers={'Referer': url})
|
||||||
video_data = self._search_nextjs_data(webpage, video_id)['props']['pageProps']['detail']['video']
|
video_data = self._search_nextjs_data(webpage, video_id)['props']['pageProps']['detail']['video']
|
||||||
|
|
||||||
data = self._download_json(
|
data = self._download_json(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user