X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=test%2Ftest_download.py;h=d0be8d27ca93631b73e6cf82d459cbdbf722b2fa;hb=933605d7e8c00df065f04024c3206a3352058484;hp=f242b3528aa002d8610d7da587a49a601b2c5f9f;hpb=b3d9ef88ec55335db93601f4b2ec9ad30eca93ec;p=youtube-dl diff --git a/test/test_download.py b/test/test_download.py index f242b3528..d0be8d27c 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.add_downloader_progress_hook(_hook) + ydl.add_progress_hook(_hook) def get_tc_filename(tc): return tc.get('file') or ydl.prepare_filename(tc.get('info_dict', {}))