From 0ea324ce10ef16ea1a781a8d473fafd1646d9596 Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Thu, 14 Jan 2016 18:11:39 +0100 Subject: [PATCH] smooth-dl.py: factor out a download_file() function --- smooth-dl.py | 34 ++++++++++++++++------------------ 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/smooth-dl.py b/smooth-dl.py index 3297102..9530392 100755 --- a/smooth-dl.py +++ b/smooth-dl.py @@ -93,6 +93,20 @@ def write_wav_header(out_file, fmt, codec_private_data, data_len): out_file.write("data") out_file.write(struct.pack('