diff options
author | Paweł Jastrzębski <pawelj@iosphe.re> | 2019-03-06 16:16:26 +0100 |
---|---|---|
committer | Paweł Jastrzębski <pawelj@iosphe.re> | 2019-03-06 16:16:26 +0100 |
commit | c07a9657ef19e3f422424ece4e0c1c41eb092746 (patch) | |
tree | 0f59264949c62aff888cdc5d1fd46214dc43c597 /kindlecomicconverter/image.py | |
parent | Added PW4 profile (close #293) (diff) | |
download | kcc-c07a9657ef19e3f422424ece4e0c1c41eb092746.tar.gz kcc-c07a9657ef19e3f422424ece4e0c1c41eb092746.tar.bz2 kcc-c07a9657ef19e3f422424ece4e0c1c41eb092746.zip |
Removed MCD support
Diffstat (limited to 'kindlecomicconverter/image.py')
-rwxr-xr-x | kindlecomicconverter/image.py | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/kindlecomicconverter/image.py b/kindlecomicconverter/image.py index 6d44b4f..0c26bf8 100755 --- a/kindlecomicconverter/image.py +++ b/kindlecomicconverter/image.py @@ -20,12 +20,8 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. import os -from io import BytesIO -from urllib.request import Request, urlopen -from urllib.parse import quote from PIL import Image, ImageOps, ImageStat, ImageChops, ImageFilter from .shared import md5Checksum -from . import __version__ class ProfileData: @@ -347,15 +343,7 @@ class Cover: self.tomeid = 1 else: self.tomeid = tomeid - if self.tomeid in self.options.remoteCovers: - try: - source = urlopen(Request(quote(self.options.remoteCovers[self.tomeid]).replace('%3A', ':', 1), - headers={'User-Agent': 'KindleComicConverter/' + __version__})).read() - self.image = Image.open(BytesIO(source)) - except Exception: - self.image = Image.open(source) - else: - self.image = Image.open(source) + self.image = Image.open(source) self.process() def process(self): |