Skip to content

Commit

Permalink
[ie/alura] Fix extractor (#9658)
Browse files Browse the repository at this point in the history
Authored by: hugohaa
  • Loading branch information
hugohaa committed May 11, 2024
1 parent 0a1a8e3 commit fc2879e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yt_dlp/extractor/alura.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class AluraIE(InfoExtractor):

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_dict = self._download_json(video_url, video_id, 'Searching for videos')
Expand All @@ -52,7 +52,7 @@ def _real_extract(self, url):

formats = []
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_url_m3u8, None, 'mp4', entry_protocol='m3u8_native',
m3u8_id='hls', fatal=False)
Expand Down

0 comments on commit fc2879e

Please sign in to comment.