1
0
mirror of https://github.com/l1ving/youtube-dl synced 2026-06-01 22:09:48 +08:00

Update bandcamp.py

This commit is contained in:
Sergey M
2017-08-20 23:31:36 +07:00
committed by GitHub
Unverified
parent 919be935f4
commit aec10d3a83
+3 -1
View File
@@ -245,7 +245,9 @@ class BandcampAlbumIE(InfoExtractor):
self.url_result(
compat_urlparse.urljoin(url, t_path),
ie=BandcampIE.ie_key(),
video_title=self._html_search_regex(r'<span.*>(.+?)</span>', elem_content, 'title', fatal=False))
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)]