News download: Handle query only relative URLs

This commit is contained in:
Kovid Goyal 2012-06-09 09:19:29 +05:30
parent c2edf7a890
commit 84163b3de9

View File

@ -381,7 +381,7 @@ class RecursiveFetcher(object):
def absurl(self, baseurl, tag, key, filter=True):
iurl = tag[key]
parts = urlparse.urlsplit(iurl)
if not parts.netloc and not parts.path:
if not parts.netloc and not parts.path and not parts.query:
return None
if not parts.scheme:
iurl = urlparse.urljoin(baseurl, iurl, False)