From 3e9119e0e558d8aedbde8541b876629270e01072 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 1 Jul 2007 21:42:23 +0000 Subject: [PATCH] Minor bug fixes. --- src/libprs500/__init__.py | 2 +- src/libprs500/ebooks/lrf/html/convert_from.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libprs500/__init__.py b/src/libprs500/__init__.py index 9b02d8cef3..80389b6ce1 100644 --- a/src/libprs500/__init__.py +++ b/src/libprs500/__init__.py @@ -13,7 +13,7 @@ ## with this program; if not, write to the Free Software Foundation, Inc., ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. ''' E-book management software''' -__version__ = "0.3.62" +__version__ = "0.3.63" __docformat__ = "epytext" __author__ = "Kovid Goyal " __appname__ = 'libprs500' diff --git a/src/libprs500/ebooks/lrf/html/convert_from.py b/src/libprs500/ebooks/lrf/html/convert_from.py index 96de6cc4c6..b98bf018f4 100644 --- a/src/libprs500/ebooks/lrf/html/convert_from.py +++ b/src/libprs500/ebooks/lrf/html/convert_from.py @@ -930,7 +930,7 @@ class HTMLConverter(object): elif tag.has_key('href') and not self.link_exclude.match(tag['href']): purl = urlparse(tag['href']) path = unquote(purl[2]) - if path and os.path.splitext(path)[1][1:].lower() in \ + if path and os.access(path, os.R_OK) and os.path.splitext(path)[1][1:].lower() in \ ['png', 'jpg', 'bmp', 'jpeg']: self.process_image(path, tag_css) else: