Added FromDucks fix and Find Missing Issues plugin for backup
This commit is contained in:
+18
-14
@@ -5,6 +5,10 @@
|
||||
#@Key FromDucks
|
||||
#@Description Search on coa.inducks.org informations about the selected eComics
|
||||
#
|
||||
# FromDucks 2.15 - Jun 2022
|
||||
#
|
||||
# ---> 2.15 Changelog: Fixed bugs found by /u/MxFlix. Packaged by /u/quinyd
|
||||
#
|
||||
# FromDucks 2.14 - Jul 2018
|
||||
#
|
||||
# ---> 2.14 Changelog: fixed other bugs
|
||||
@@ -1012,7 +1016,7 @@ def ReadInfoDucks(book):
|
||||
contents = ""
|
||||
for counter in range (0,4):
|
||||
try:
|
||||
nNum = cSeries + "+" * counter + "%20" + nNumIss
|
||||
nNum = cSeries + "+" * counter + nNumIss
|
||||
#nNum = cSeries + "%20" + nNumIss
|
||||
|
||||
try:
|
||||
@@ -1068,11 +1072,11 @@ def ReadInfoDucks(book):
|
||||
|
||||
# Read data
|
||||
#m0 = re.compile(r'Publication:\s<a href=\"publication.php\?c=[a-z]{2,3}[/][^">]*?\">(.*?)</a>', re.IGNORECASE | re.MULTILINE | re.DOTALL)
|
||||
m0 = re.compile(r'Publication:\s<a\shref=\"publication\.php\?c=[a-z]{2,3}[%2][^">]*?\">(.*?)</a>', re.IGNORECASE | re.MULTILINE | re.DOTALL)
|
||||
m1 = re.compile(r'Publisher:\s<a\shref=\"publisher.php\?c=.*?\">(.*?)</a>', re.IGNORECASE | re.MULTILINE | re.DOTALL)
|
||||
m1a = re.compile(r'Title:\s(.*?)<br/>', re.IGNORECASE | re.MULTILINE | re.DOTALL)
|
||||
m2 = re.compile(r'Date:\s(.*?)<br/>', re.IGNORECASE | re.MULTILINE | re.DOTALL)
|
||||
m3 = re.compile(r'Pages:\s*?(\d*?)\s<br\/>', re.IGNORECASE | re.MULTILINE | re.DOTALL)
|
||||
m0 = re.compile(r'Publication<.*?<a\shref=\"publication\.php\?c=[a-z]{2,3}[%2][^">]*?\">(.*?)<', re.IGNORECASE | re.MULTILINE | re.DOTALL)
|
||||
m1 = re.compile(r'Publisher.*?<a\shref=\"publisher.php\?c=.*?\">(.*?)<', re.IGNORECASE | re.MULTILINE | re.DOTALL)
|
||||
m1a = re.compile(r'Title<\/dt>\s*?<dd>(.*?)<', re.IGNORECASE | re.MULTILINE | re.DOTALL)
|
||||
m2 = re.compile(r'Date<\/dt>\s*?<dd>(.*?)>', re.IGNORECASE | re.MULTILINE | re.DOTALL)
|
||||
m3 = re.compile(r'Pages<\/dt>\s*?<dd>(\d*?)<', re.IGNORECASE | re.MULTILINE | re.DOTALL)
|
||||
|
||||
result0 = m0.search(contents)
|
||||
Series = ""
|
||||
@@ -1173,14 +1177,14 @@ def ReadInfoDucks(book):
|
||||
if DEBUG:print chr(10) + "<-------- Stories -------->"
|
||||
|
||||
result3 = m3.findall(contents)
|
||||
if not result3:
|
||||
#progress.NotFound("stories")
|
||||
f.Update("Stories", 1)
|
||||
f.Refresh()
|
||||
#
|
||||
if DEBUG:print "Not Found ----> Stories"
|
||||
#
|
||||
return -1,0,0,0,0,0,0,0,0,0,0
|
||||
# if not result3:
|
||||
# #progress.NotFound("stories")
|
||||
# f.Update("Stories", 1)
|
||||
# f.Refresh()
|
||||
# #
|
||||
# if DEBUG:print "Not Found ----> Stories"
|
||||
# #
|
||||
# return -1,0,0,0,0,0,0,0,0,0,0
|
||||
|
||||
|
||||
for Stories in result3:
|
||||
|
||||
Reference in New Issue
Block a user