mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-06-20 15:45:25 +00:00
fixing parsing bug
This commit is contained in:
parent
168e72dcd3
commit
8781ffb4f1
11
.fleet/run.json
Normal file
11
.fleet/run.json
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"type": "python",
|
||||||
|
"name": "Python configuration",
|
||||||
|
"file": "yt_dlp",
|
||||||
|
"arguments": ["--cookies", "cookies.txt", "https://cursos.alura.com.br/course/kubernetes-pods-services-configmap"],
|
||||||
|
},
|
||||||
|
|
||||||
|
]
|
||||||
|
}
|
|
@ -39,7 +39,7 @@ class AluraIE(InfoExtractor):
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
|
|
||||||
course, video_id = self._match_valid_url(url)
|
course, video_id = self._match_valid_url(url).group('course_name', 'id')
|
||||||
video_url = self._VIDEO_URL % (course, video_id)
|
video_url = self._VIDEO_URL % (course, video_id)
|
||||||
|
|
||||||
video_dict = self._download_json(video_url, video_id, 'Searching for videos')
|
video_dict = self._download_json(video_url, video_id, 'Searching for videos')
|
||||||
|
@ -52,7 +52,7 @@ class AluraIE(InfoExtractor):
|
||||||
|
|
||||||
formats = []
|
formats = []
|
||||||
for video_obj in video_dict:
|
for video_obj in video_dict:
|
||||||
video_url_m3u8 = video_obj.get('link')
|
video_url_m3u8 = video_obj.get('mp4')
|
||||||
video_format = self._extract_m3u8_formats(
|
video_format = self._extract_m3u8_formats(
|
||||||
video_url_m3u8, None, 'mp4', entry_protocol='m3u8_native',
|
video_url_m3u8, None, 'mp4', entry_protocol='m3u8_native',
|
||||||
m3u8_id='hls', fatal=False)
|
m3u8_id='hls', fatal=False)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user