From 89806dfcfc7992928fb2cec3bfd36dba456d68d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Jastrz=C4=99bski?= Date: Mon, 24 Nov 2014 18:55:40 +0100 Subject: [PATCH] Disabled MCD integration --- kcc/comic2ebook.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/kcc/comic2ebook.py b/kcc/comic2ebook.py index f7741bc..c4ae411 100755 --- a/kcc/comic2ebook.py +++ b/kcc/comic2ebook.py @@ -29,7 +29,7 @@ from copy import copy from glob import glob from json import loads from urllib.request import Request, urlopen -from re import split, sub, compile +from re import split, sub from stat import S_IWRITE, S_IREAD, S_IEXEC from zipfile import ZipFile, ZIP_STORED, ZIP_DEFLATED from tempfile import mkdtemp @@ -678,11 +678,12 @@ def getComicInfo(path, originalPath): options.authors.sort() else: options.authors = ['KCC'] - if len(xml.getElementsByTagName('ScanInformation')) != 0: - coverId = xml.getElementsByTagName('ScanInformation')[0].firstChild.nodeValue - coverId = compile('(MCD\\()(\\d+)(\\))').search(coverId) - if coverId: - options.remoteCovers = getCoversFromMCB(coverId.group(2)) + # Disabled due to closure of MCD + # if len(xml.getElementsByTagName('ScanInformation')) != 0: + # coverId = xml.getElementsByTagName('ScanInformation')[0].firstChild.nodeValue + # coverId = compile('(MCD\\()(\\d+)(\\))').search(coverId) + # if coverId: + # options.remoteCovers = getCoversFromMCB(coverId.group(2)) os.remove(xmlPath)