From eaf2db6c5934f948eec90bcf622d6638b0b5056a Mon Sep 17 00:00:00 2001 From: rembo10 Date: Mon, 14 Feb 2022 08:12:47 +0530 Subject: [PATCH] Open blackhole nzb file as binary --- headphones/searcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/headphones/searcher.py b/headphones/searcher.py index 5a7ff973..1753944f 100644 --- a/headphones/searcher.py +++ b/headphones/searcher.py @@ -809,7 +809,7 @@ def send_to_downloader(data, bestqual, album): try: prev = os.umask(headphones.UMASK) - with open(download_path, 'w') as fp: + with open(download_path, 'wb') as fp: fp.write(data) os.umask(prev)