Skip to content

Commit

Permalink
adjust comment
Browse files Browse the repository at this point in the history
  • Loading branch information
bashonly authored Feb 29, 2024
1 parent f48fde4 commit f295f4b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions yt_dlp/extractor/rai.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,10 @@ class RaiBaseIE(InfoExtractor):
_GEO_BYPASS = False

def _fix_m3u8_formats(self, media_url, video_id):
# fixes the formats list because the website
# uses some malformed m3u8 manifest that needs manual fixing
# to properly set audio-only and video-only formats

fmts = self._extract_m3u8_formats(
media_url, video_id, 'mp4', m3u8_id='hls', fatal=False)

# Fix malformed m3u8 manifests by setting audio-only/video-only formats
for f in fmts:
if not f.get('acodec'):
f['acodec'] = 'mp4a'
Expand Down

0 comments on commit f295f4b

Please sign in to comment.