]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/hungama.py
[ie/matchtv] Fix extractor (#10190)
[yt-dlp.git] / yt_dlp / extractor / hungama.py
index cdec36838e708b01ab6289a5b8efbafb0623b433..a687b12dc59e1ab81132331891c54798badcd1f7 100644 (file)
@@ -98,7 +98,7 @@ def _real_extract(self, url):
                 'en': [{
                     'url': video_json['sub_title'],
                     'ext': 'vtt',
-                }]
+                }],
             } if video_json.get('sub_title') else None,
         }
 
@@ -114,7 +114,6 @@ class HungamaSongIE(InfoExtractor):
             'title': 'Lucky Ali - Kitni Haseen Zindagi',
             'track': 'Kitni Haseen Zindagi',
             'artist': 'Lucky Ali',
-            'album': None,
             'release_year': 2000,
             'thumbnail': 'https://stat2.hungama.ind.in/assets/images/default_images/da-200x200.png',
         },
@@ -137,7 +136,7 @@ def _real_extract(self, url):
         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')
@@ -154,7 +153,7 @@ def _real_extract(self, url):
                 '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 {