mirror of
https://github.com/ciromattia/kcc
synced 2025-12-13 09:46:25 +00:00
Disabled MCD integration
This commit is contained in:
@@ -29,7 +29,7 @@ from copy import copy
|
|||||||
from glob import glob
|
from glob import glob
|
||||||
from json import loads
|
from json import loads
|
||||||
from urllib.request import Request, urlopen
|
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 stat import S_IWRITE, S_IREAD, S_IEXEC
|
||||||
from zipfile import ZipFile, ZIP_STORED, ZIP_DEFLATED
|
from zipfile import ZipFile, ZIP_STORED, ZIP_DEFLATED
|
||||||
from tempfile import mkdtemp
|
from tempfile import mkdtemp
|
||||||
@@ -678,11 +678,12 @@ def getComicInfo(path, originalPath):
|
|||||||
options.authors.sort()
|
options.authors.sort()
|
||||||
else:
|
else:
|
||||||
options.authors = ['KCC']
|
options.authors = ['KCC']
|
||||||
if len(xml.getElementsByTagName('ScanInformation')) != 0:
|
# Disabled due to closure of MCD
|
||||||
coverId = xml.getElementsByTagName('ScanInformation')[0].firstChild.nodeValue
|
# if len(xml.getElementsByTagName('ScanInformation')) != 0:
|
||||||
coverId = compile('(MCD\\()(\\d+)(\\))').search(coverId)
|
# coverId = xml.getElementsByTagName('ScanInformation')[0].firstChild.nodeValue
|
||||||
if coverId:
|
# coverId = compile('(MCD\\()(\\d+)(\\))').search(coverId)
|
||||||
options.remoteCovers = getCoversFromMCB(coverId.group(2))
|
# if coverId:
|
||||||
|
# options.remoteCovers = getCoversFromMCB(coverId.group(2))
|
||||||
os.remove(xmlPath)
|
os.remove(xmlPath)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user