Skip to content

Commit

Permalink
[ie/jiosaavn] Fix format extensions (yt-dlp#9609)
Browse files Browse the repository at this point in the history
Authored by: bashonly
  • Loading branch information
bashonly authored Apr 3, 2024
1 parent 4c3b7a0 commit 443e206
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions yt_dlp/extractor/jiosaavn.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class JioSaavnSongIE(JioSaavnBaseIE):
'md5': '3b84396d15ed9e083c3106f1fa589c04',
'info_dict': {
'id': 'OQsEfQFVUXk',
'ext': 'mp4',
'ext': 'm4a',
'title': 'Leja Re',
'album': 'Leja Re',
'thumbnail': 'https://c.saavncdn.com/258/Leja-Re-Hindi-2018-20181124024539-500x500.jpg',
Expand Down Expand Up @@ -61,9 +61,10 @@ def _real_extract(self, url):
if not media_data.get('auth_url'):
self.report_warning(f'Unable to extract format info for {bitrate}')
continue
ext = media_data.get('type')
formats.append({
'url': media_data['auth_url'],
'ext': media_data.get('type'),
'ext': 'm4a' if ext == 'mp4' else ext,
'format_id': bitrate,
'abr': int(bitrate),
'vcodec': 'none',
Expand Down

0 comments on commit 443e206

Please sign in to comment.