crawler: stop at first alternative link

Should save a few ms and the first one is usually (?) the most relevant/generic
master
pictuga 2020-04-23 11:23:45 +02:00
parent 325a373e3e
commit 8187876a06
1 changed files with 1 additions and 0 deletions

View File

@ -252,6 +252,7 @@ class AlternateHandler(BaseHandler):
resp.code = 302
resp.msg = 'Moved Temporarily'
resp.headers['location'] = link.get('href')
break
fp = BytesIO(data)
old_resp = resp