Fix decoding
Was dropped in previous commit by mistake
This commit is contained in:
		
							
								
								
									
										2
									
								
								morss.py
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								morss.py
									
									
									
									
									
								
							@@ -344,7 +344,7 @@ def Fill(item, cache, feedurl='/', fast=False):
 | 
				
			|||||||
	# download
 | 
						# download
 | 
				
			||||||
	try:
 | 
						try:
 | 
				
			||||||
		url = link.encode('utf-8')
 | 
							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()
 | 
							data = con.read()
 | 
				
			||||||
	except (urllib2.URLError, httplib.HTTPException, socket.timeout):
 | 
						except (urllib2.URLError, httplib.HTTPException, socket.timeout):
 | 
				
			||||||
		log('http error')
 | 
							log('http error')
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user