Use desktop browser UA for xml

Convenient for rss links detection and "feedify"
master
pictuga 2013-10-01 19:47:45 +02:00
parent e3c1cd8619
commit cf5040020e
1 changed files with 1 additions and 1 deletions

View File

@ -379,7 +379,7 @@ def Gather(url, cachePath, options):
style = cache.get('style')
else:
try:
opener = CacheDownload(cache.get(url), cache.get('etag'), cache.get('lastmodified'))
opener = CacheDownload(cache.get(url), cache.get('etag'), cache.get('lastmodified'), useragent=UA_HTML)
con = urllib2.build_opener(opener).open(url, timeout=TIMEOUT)
xml = con.read()
except (urllib2.URLError, httplib.HTTPException, socket.timeout):