Jelajahi Sumber

[bandcamp:album] Fix title extraction (Fixes #4721)

Philipp Hagemeister 10 tahun lalu
induk
melakukan
cce81f192c
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 2 1
      youtube_dl/extractor/bandcamp.py

+ 2 - 1
youtube_dl/extractor/bandcamp.py

@@ -161,7 +161,8 @@ class BandcampAlbumIE(InfoExtractor):
         entries = [
         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())
             for t_path in tracks_paths]
             for t_path in tracks_paths]
-        title = self._search_regex(r'album_title : "(.*?)"', webpage, 'title')
+        title = self._search_regex(
+            r'album_title\s*:\s*"(.*?)"', webpage, 'title', fatal=False)
         return {
         return {
             '_type': 'playlist',
             '_type': 'playlist',
             'id': playlist_id,
             'id': playlist_id,