Browse Source

[bandcamp:album] Extract track titles

master-ytdl-org
Luca Steeb 7 years ago
committed by Sergey M
parent
commit
8239c6791a
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      youtube_dl/extractor/bandcamp.py

+ 6
- 1
youtube_dl/extractor/bandcamp.py View File

@ -242,7 +242,12 @@ class BandcampAlbumIE(InfoExtractor):
raise ExtractorError('The page doesn\'t contain any tracks')
# Only tracks with duration info have songs
entries = [
self.url_result(compat_urlparse.urljoin(url, t_path), ie=BandcampIE.ie_key())
self.url_result(
compat_urlparse.urljoin(url, t_path),
ie=BandcampIE.ie_key(),
video_title=self._search_regex(
r'<span\b[^>]+\bitemprop=["\']name["\'][^>]*>([^<]+)',
elem_content, 'track title', fatal=False))
for elem_content, t_path in track_elements
if self._html_search_meta('duration', elem_content, default=None)]


Loading…
Cancel
Save