summaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/hungama.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-08-05 09:06:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-08-05 09:06:10 +0000
commit137f07c27a88b07df57df5b2cdebebe3c7722bac (patch)
tree4ebdcbea6b540f69c40ba0be6ac766008030d149 /yt_dlp/extractor/hungama.py
parentAdding debian version 2024.05.27-1. (diff)
downloadyt-dlp-137f07c27a88b07df57df5b2cdebebe3c7722bac.tar.xz
yt-dlp-137f07c27a88b07df57df5b2cdebebe3c7722bac.zip
Merging upstream version 2024.07.01.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'yt_dlp/extractor/hungama.py')
-rw-r--r--yt_dlp/extractor/hungama.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/yt_dlp/extractor/hungama.py b/yt_dlp/extractor/hungama.py
index 7da8aad..a687b12 100644
--- a/yt_dlp/extractor/hungama.py
+++ b/yt_dlp/extractor/hungama.py
@@ -98,7 +98,7 @@ class HungamaIE(HungamaBaseIE):
'en': [{
'url': video_json['sub_title'],
'ext': 'vtt',
- }]
+ }],
} if video_json.get('sub_title') else None,
}
@@ -136,7 +136,7 @@ class HungamaSongIE(InfoExtractor):
audio_id = self._match_id(url)
data = self._download_json(
- 'https://www.hungama.com/audio-player-data/track/%s' % audio_id,
+ f'https://www.hungama.com/audio-player-data/track/{audio_id}',
audio_id, query={'_country': 'IN'})[0]
track = data['song_name']
artist = data.get('singer_name')
@@ -153,7 +153,7 @@ class HungamaSongIE(InfoExtractor):
'acodec': media_type,
})
- title = '%s - %s' % (artist, track) if artist else track
+ title = f'{artist} - {track}' if artist else track
thumbnail = data.get('img_src') or data.get('album_image')
return {