Private GIT

Skip to content
Snippets Groups Projects
Commit 76062ae2 authored by echel0n's avatar echel0n
Browse files

download_file helper function now decodes unicode on the fly

parent ef9334fa
No related branches found
No related tags found
No related merge requests found
......@@ -1207,7 +1207,7 @@ def download_file(url, filename, session=None):
return False
with open(filename, 'wb') as fp:
for chunk in resp.iter_content(chunk_size=1024):
for chunk in resp.iter_content(chunk_size=1024, decode_unicode=True):
if chunk:
fp.write(chunk)
fp.flush()
......
......@@ -21,11 +21,11 @@ from __future__ import with_statement
import unittest
import sys, os.path
import urlparse
sys.path.append(os.path.abspath('..'))
sys.path.append(os.path.abspath('../lib'))
import urlparse
import test_lib as test
from bs4 import BeautifulSoup
from sickbeard.helpers import getURL
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment