projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[scrippsnetworks:watch] Add new extractor(closes #10765)
[youtube-dl]
/
test
/
test_download.py
diff --git
a/test/test_download.py
b/test/test_download.py
index 2844188340ce99ec3a4af8bb3dde916264390fd8..4639529897967ebc49883e488f5624a038c70c44 100644
(file)
--- a/
test/test_download.py
+++ b/
test/test_download.py
@@
-60,6
+60,7
@@
def _file_md5(fn):
with open(fn, 'rb') as f:
return hashlib.md5(f.read()).hexdigest()
with open(fn, 'rb') as f:
return hashlib.md5(f.read()).hexdigest()
+
defs = gettestcases()
defs = gettestcases()
@@
-102,7
+103,7
@@
def generator(test_case):
params = get_params(test_case.get('params', {}))
if is_playlist and 'playlist' not in 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)
params.setdefault('skip_download', True)
ydl = YoutubeDL(params, auto_init=False)
@@
-217,6
+218,7
@@
def generator(test_case):
return test_template
return test_template
+
# And add them to TestDownload
for n, test_case in enumerate(defs):
test_method = generator(test_case)
# And add them to TestDownload
for n, test_case in enumerate(defs):
test_method = generator(test_case)