mirror of
https://github.com/ciromattia/kcc
synced 2025-12-13 01:36:27 +00:00
Disabled MCD integration
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user