]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[test/test_download] Use extract_flat = 'in_playlist' for playlist items
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Fri, 23 Oct 2015 12:12:46 +0000 (14:12 +0200)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Fri, 23 Oct 2015 12:12:46 +0000 (14:12 +0200)
Some playlist extractors return a 'url' result, which wouldn't be resolved.

test/test_download.py

index 2844188340ce99ec3a4af8bb3dde916264390fd8..a3f1c0644f32b180a2b177e76dbea44854b0983e 100644 (file)
@@ -102,7 +102,7 @@ def generator(test_case):
 
         params = get_params(test_case.get('params', {}))
         if is_playlist and 'playlist' not in test_case:
-            params.setdefault('extract_flat', True)
+            params.setdefault('extract_flat', 'in_playlist')
             params.setdefault('skip_download', True)
 
         ydl = YoutubeDL(params, auto_init=False)