mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Allow fetching of extensionless images
This commit is contained in:
parent
13eac7a435
commit
f5e86cc2a8
@ -184,9 +184,9 @@ class RecursiveFetcher(object):
|
||||
c = 0
|
||||
for tag in soup.findAll(lambda tag: tag.name.lower()=='img' and tag.has_key('src')):
|
||||
iurl, ext = tag['src'], os.path.splitext(tag['src'])[1]
|
||||
if not ext:
|
||||
self.logger.debug('Skipping extensionless image %s', iurl)
|
||||
continue
|
||||
#if not ext:
|
||||
# self.logger.debug('Skipping extensionless image %s', iurl)
|
||||
# continue
|
||||
if not urlparse.urlsplit(iurl).scheme:
|
||||
iurl = urlparse.urljoin(baseurl, iurl, False)
|
||||
with self.imagemap_lock:
|
||||
|
Loading…
x
Reference in New Issue
Block a user