mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-24 05:16:12 +01:00
Allow fetching of extensionless images
This commit is contained in:
parent
13eac7a435
commit
f5e86cc2a8
1 changed files with 3 additions and 3 deletions
|
|
@ -184,9 +184,9 @@ def process_images(self, soup, baseurl):
|
|||
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…
Reference in a new issue