mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1235 (Guardian feed fails to download in 0.4.102)
This commit is contained in:
parent
09a4a48bbd
commit
7fb21ac00d
@ -245,6 +245,7 @@ class RecursiveFetcher(object, LoggingInterface):
|
|||||||
c = 0
|
c = 0
|
||||||
for tag in soup.findAll(lambda tag: tag.name.lower()=='img' and tag.has_key('src')):
|
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]
|
iurl, ext = tag['src'], os.path.splitext(tag['src'])[1]
|
||||||
|
ext = ext[:5]
|
||||||
#if not ext:
|
#if not ext:
|
||||||
# self.log_debug('Skipping extensionless image %s', iurl)
|
# self.log_debug('Skipping extensionless image %s', iurl)
|
||||||
# continue
|
# continue
|
||||||
|
Loading…
x
Reference in New Issue
Block a user