mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-17 00:22:34 +01:00
[ie/asobistage] Support redirected URLs (#10768)
Authored by: pzhlkj6612
This commit is contained in:
parent
d62fef7e07
commit
a7d3235c84
@ -101,9 +101,10 @@ def _real_initialize(self):
|
|||||||
self._HEADERS['Authorization'] = f'Bearer {token}'
|
self._HEADERS['Authorization'] = f'Bearer {token}'
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
video_id, event, type_, slug = self._match_valid_url(url).group('id', 'event', 'type', 'slug')
|
webpage, urlh = self._download_webpage_handle(url, self._match_id(url))
|
||||||
|
video_id, event, type_, slug = self._match_valid_url(urlh.url).group('id', 'event', 'type', 'slug')
|
||||||
video_type = {'archive': 'archives', 'player': 'broadcasts'}[type_]
|
video_type = {'archive': 'archives', 'player': 'broadcasts'}[type_]
|
||||||
webpage = self._download_webpage(url, video_id)
|
|
||||||
event_data = traverse_obj(
|
event_data = traverse_obj(
|
||||||
self._search_nextjs_data(webpage, video_id, default={}),
|
self._search_nextjs_data(webpage, video_id, default={}),
|
||||||
('props', 'pageProps', 'eventCMSData', {
|
('props', 'pageProps', 'eventCMSData', {
|
||||||
|
Loading…
Reference in New Issue
Block a user