浏览代码

[bandcamp:album] Fix test case

Philipp Hagemeister 10 年之前
父节点
当前提交
13ba3a6461
共有 1 个文件被更改,包括 7 次插入2 次删除
  1. 7 2
      youtube_dl/extractor/bandcamp.py

+ 7 - 2
youtube_dl/extractor/bandcamp.py

@@ -110,20 +110,25 @@ class BandcampAlbumIE(InfoExtractor):
         'url': 'http://blazo.bandcamp.com/album/jazz-format-mixtape-vol-1',
         'url': 'http://blazo.bandcamp.com/album/jazz-format-mixtape-vol-1',
         'playlist': [
         'playlist': [
             {
             {
-                'file': '1353101989.mp3',
                 'md5': '39bc1eded3476e927c724321ddf116cf',
                 'md5': '39bc1eded3476e927c724321ddf116cf',
                 'info_dict': {
                 'info_dict': {
+                    'id': '1353101989',
+                    'ext': 'mp3',
                     'title': 'Intro',
                     'title': 'Intro',
                 }
                 }
             },
             },
             {
             {
-                'file': '38097443.mp3',
                 'md5': '1a2c32e2691474643e912cc6cd4bffaa',
                 'md5': '1a2c32e2691474643e912cc6cd4bffaa',
                 'info_dict': {
                 'info_dict': {
+                    'id': '38097443',
+                    'ext': 'mp3',
                     'title': 'Kero One - Keep It Alive (Blazo remix)',
                     'title': 'Kero One - Keep It Alive (Blazo remix)',
                 }
                 }
             },
             },
         ],
         ],
+        'info_dict': {
+            'title': 'Jazz Format Mixtape vol.1',
+        },
         'params': {
         'params': {
             'playlistend': 2
             'playlistend': 2
         },
         },