- else:
- #Pull out metadata
- page = self._download_webpage(url, id)
- artist = self._html_search_regex(r'<span class="artist">(.*)</span>', page, "artist")
- songtitle = self._html_search_regex(r'<h1 class="profile-title song-title"><span class="artist">.*</span>(.*)</h1>', page, "title")
- title = artist+" - "+songtitle
- return {
- 'id': id, # ignore id, which is not useful in song name
- 'title': title,
- 'url': realurl,
- 'ext': 'mp3'
- }
+
+ webpage = self._download_webpage(url, video_id)
+ artist = self._html_search_regex(
+ r'<span class="artist">(.*?)</span>', webpage, "artist")
+ songtitle = self._html_search_regex(
+ r'<h1 class="profile-title song-title"><span class="artist">.*?</span>(.*?)</h1>',
+ webpage, "title")
+ title = artist + " - " + songtitle
+
+ return {
+ 'id': video_id,
+ 'title': title,
+ 'url': realurl,
+ }