瀏覽代碼

[appletrailers] update test cases

Tithen-Firion 8 年之前
父節點
當前提交
76c1951036
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      youtube_dl/extractor/appletrailers.py

+ 3 - 2
youtube_dl/extractor/appletrailers.py

@@ -70,7 +70,8 @@ class AppleTrailersIE(InfoExtractor):
     }, {
     }, {
         'url': 'http://trailers.apple.com/trailers/magnolia/blackthorn/',
         'url': 'http://trailers.apple.com/trailers/magnolia/blackthorn/',
         'info_dict': {
         'info_dict': {
-            'id': 'blackthorn',
+            'id': '4489',
+            'title': 'Blackthorn',
         },
         },
         'playlist_mincount': 2,
         'playlist_mincount': 2,
         'expected_warnings': ['Unable to download JSON metadata'],
         'expected_warnings': ['Unable to download JSON metadata'],
@@ -261,7 +262,7 @@ class AppleTrailersSectionIE(InfoExtractor):
             'title': 'Most Popular',
             'title': 'Most Popular',
             'id': 'mostpopular',
             'id': 'mostpopular',
         },
         },
-        'playlist_mincount': 80,
+        'playlist_mincount': 30,
     }, {
     }, {
         'url': 'http://trailers.apple.com/#section=moviestudios',
         'url': 'http://trailers.apple.com/#section=moviestudios',
         'info_dict': {
         'info_dict': {