X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=test%2Ftest_download.py;h=f242b3528aa002d8610d7da587a49a601b2c5f9f;hb=8ab470f1b26b6c42ab74ceb345994c201743bed8;hp=dd5818dba91c166936e45f1c7d8779c752fa3b86;hpb=f2c36ee43e06f81cd0ac77e5b1d0c238c0057623;p=youtube-dl diff --git a/test/test_download.py b/test/test_download.py index dd5818dba..f242b3528 100644 --- a/test/test_download.py +++ b/test/test_download.py @@ -90,7 +90,7 @@ def generator(test_case): def _hook(status): if status['status'] == 'finished': finished_hook_called.add(status['filename']) - ydl.fd.add_progress_hook(_hook) + ydl.add_downloader_progress_hook(_hook) def get_tc_filename(tc): return tc.get('file') or ydl.prepare_filename(tc.get('info_dict', {}))