mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
News download: Handle query only relative URLs
This commit is contained in:
parent
c2edf7a890
commit
84163b3de9
@ -381,7 +381,7 @@ class RecursiveFetcher(object):
|
|||||||
def absurl(self, baseurl, tag, key, filter=True):
|
def absurl(self, baseurl, tag, key, filter=True):
|
||||||
iurl = tag[key]
|
iurl = tag[key]
|
||||||
parts = urlparse.urlsplit(iurl)
|
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
|
return None
|
||||||
if not parts.scheme:
|
if not parts.scheme:
|
||||||
iurl = urlparse.urljoin(baseurl, iurl, False)
|
iurl = urlparse.urljoin(baseurl, iurl, False)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user