From fab4c19ad9891cbe5ad81b91001d885e502f5e2d Mon Sep 17 00:00:00 2001 From: Al Beano Date: Wed, 3 Jan 2018 18:29:21 +0000 Subject: [PATCH] Use byChunk to download files, there is no reason to use byChunkAsync --- source/app.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/app.d b/source/app.d index 3c64b4e..407c138 100644 --- a/source/app.d +++ b/source/app.d @@ -126,7 +126,7 @@ int main(string[] args) "-metadata", "albumartist="~artist, "-metadata", "discnumber="~discNum, "-metadata", "tracktotal="~tracks.length.text, "-metadata", "disctotal="~discs.text, relPath], Redirect.stdin | Redirect.stderr | Redirect.stdout); - foreach (chunk; byChunkAsync(url, 1024)) { + foreach (chunk; byChunk(url, 1024)) { pipes.stdin.rawWrite(chunk); pipes.stdin.flush; }