mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-26 02:55:17 +00:00
parent
50eff38c1c
commit
388bc4a640
2 changed files with 6 additions and 1 deletions
|
@ -2594,7 +2594,9 @@ def process_info(self, info_dict):
|
|||
return
|
||||
else:
|
||||
try:
|
||||
self.dl(sub_filename, sub_info.copy(), subtitle=True)
|
||||
sub_copy = sub_info.copy()
|
||||
sub_copy.setdefault('http_headers', info_dict.get('http_headers'))
|
||||
self.dl(sub_filename, sub_copy, subtitle=True)
|
||||
sub_info['filepath'] = sub_filename
|
||||
files_to_move[sub_filename] = sub_filename_final
|
||||
except (ExtractorError, IOError, OSError, ValueError) + network_exceptions as err:
|
||||
|
|
|
@ -254,6 +254,9 @@ def _real_extract(self, url):
|
|||
'season_id': video_data.get('seasonId'),
|
||||
'episode': title,
|
||||
'episode_number': int_or_none(video_data.get('episodeNo')),
|
||||
'http_headers': {
|
||||
'Referer': 'https://www.hotstar.com/in',
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue