Open blackhole nzb file as binary

This commit is contained in:
rembo10
2022-02-14 08:12:47 +05:30
parent 586b9ed3c8
commit eaf2db6c59

View File

@@ -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)