]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/hungama.py
[extractor] Common function `_match_valid_url`
[yt-dlp.git] / yt_dlp / extractor / hungama.py
index c33e387e7a83d1ee00c6a34e71b074e5bb0c1abf..821b16e5dcf7bbccd603585b6b7562c9127441d2 100644 (file)
@@ -139,9 +139,9 @@ class HungamaAlbumPlaylistIE(InfoExtractor):
     }]
 
     def _real_extract(self, url):
-        id = self._match_id(url)
-        webpage = self._download_webpage(url, id)
+        video_id = self._match_id(url)
+        webpage = self._download_webpage(url, video_id)
         ptrn = r'<meta[^>]+?property=[\"\']?music:song:url[\"\']?[^>]+?content=[\"\']?([^\"\']+)'
         items = re.findall(ptrn, webpage)
         entries = [self.url_result(item, ie=HungamaSongIE.ie_key()) for item in items]
-        return self.playlist_result(entries, id)
+        return self.playlist_result(entries, video_id)