Upgrade yt_dlp and download script
This commit is contained in:
@@ -12,7 +12,7 @@ class MinotoIE(InfoExtractor):
|
||||
mobj = self._match_valid_url(url)
|
||||
player_id = mobj.group('player_id') or '1'
|
||||
video_id = mobj.group('id')
|
||||
video_data = self._download_json('http://play.minoto-video.com/%s/%s.js' % (player_id, video_id), video_id)
|
||||
video_data = self._download_json(f'http://play.minoto-video.com/{player_id}/{video_id}.js', video_id)
|
||||
video_metadata = video_data['video-metadata']
|
||||
formats = []
|
||||
for fmt in video_data['video-files']:
|
||||
@@ -21,7 +21,7 @@ class MinotoIE(InfoExtractor):
|
||||
continue
|
||||
container = fmt.get('container')
|
||||
if container == 'hls':
|
||||
formats.extend(fmt_url, video_id, 'mp4', m3u8_id='hls', fatal=False)
|
||||
formats.extend(self._extract_m3u8_formats(fmt_url, video_id, 'mp4', m3u8_id='hls', fatal=False))
|
||||
else:
|
||||
fmt_profile = fmt.get('profile') or {}
|
||||
formats.append({
|
||||
|
Reference in New Issue
Block a user