Fix decoding

Was dropped in previous commit by mistake
master
pictuga 2013-10-21 21:24:19 +02:00
parent a1f9fe24c8
commit 1802827d31
1 changed files with 1 additions and 1 deletions

View File

@ -344,7 +344,7 @@ def Fill(item, cache, feedurl='/', fast=False):
# download
try:
url = link.encode('utf-8')
con = urllib2.build_opener(SimpleDownload()).open(url, timeout=TIMEOUT)
con = urllib2.build_opener(SimpleDownload(decode=True)).open(url, timeout=TIMEOUT)
data = con.read()
except (urllib2.URLError, httplib.HTTPException, socket.timeout):
log('http error')