about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPaweł Jastrzębski <pawelj@iosphe.re>2014-07-23 20:55:31 +0200
committerPaweł Jastrzębski <pawelj@iosphe.re>2014-07-23 20:55:31 +0200
commit836a4146f97b59c81fcf3d5dab913672d291cf2d (patch)
treef86000747d05c1610a029a09384fde1063a31ea8
parentMerge pull request #103 from ciromattia/4.x (diff)
downloadkcc-836a4146f97b59c81fcf3d5dab913672d291cf2d.tar.gz
kcc-836a4146f97b59c81fcf3d5dab913672d291cf2d.tar.bz2
kcc-836a4146f97b59c81fcf3d5dab913672d291cf2d.zip
MCD: Fixed small bug
-rwxr-xr-xkcc/image.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/kcc/image.py b/kcc/image.py
index f8abfe6..fd00b90 100755
--- a/kcc/image.py
+++ b/kcc/image.py
@@ -24,6 +24,7 @@ __docformat__ = 'restructuredtext en'
 import os
 from io import BytesIO
 from urllib.request import Request, urlopen
+from urllib.parse import quote
 from functools import reduce
 from PIL import Image, ImageOps, ImageStat, ImageChops
 from .shared import md5Checksum
@@ -485,7 +486,7 @@ class Cover:
             self.tomeNumber = tomeNumber
         if self.tomeNumber in self.options.remoteCovers:
             try:
-                source = urlopen(Request(self.options.remoteCovers[self.tomeNumber],
+                source = urlopen(Request(quote(self.options.remoteCovers[self.tomeNumber]).replace('%3A', ':', 1),
                                          headers={'User-Agent': 'KindleComicConverter/' + __version__})).read()
                 self.image = Image.open(BytesIO(source))
                 self.processExternal()