mirror of
https://github.com/evilhero/mylar
synced 2024-12-24 00:32:47 +00:00
FIX: forgot to include updated parse for #151
This commit is contained in:
parent
3be8189b2a
commit
aaa4891343
1 changed files with 6 additions and 6 deletions
|
@ -499,17 +499,17 @@ def ComChk(ComicName, ComicYear, ComicPublisher, Total, ComicID):
|
||||||
cnt1 = len(soup.findAll("tr", {"class" : "listing_even"}))
|
cnt1 = len(soup.findAll("tr", {"class" : "listing_even"}))
|
||||||
cnt2 = len(soup.findAll("tr", {"class" : "listing_odd"}))
|
cnt2 = len(soup.findAll("tr", {"class" : "listing_odd"}))
|
||||||
|
|
||||||
try:
|
# try:
|
||||||
cntit = soup.find("div", {"class" : "item_data"})
|
# cntit = soup.find("div", {"class" : "item_data"})
|
||||||
# catchit = pubst('a')[0]
|
# catchit = pubst('a')[0]
|
||||||
|
|
||||||
except (IndexError, TypeError):
|
# except (IndexError, TypeError):
|
||||||
cntit = soup.findAll("div", {"class" : "left"})[1]
|
# cntit = soup.findAll("div", {"class" : "left"})[1]
|
||||||
# catchit = pubst.find("a")
|
# catchit = pubst.find("a")
|
||||||
|
|
||||||
truecnt = cntit.findNext(text=True)
|
# truecnt = cntit.findNext(text=True)
|
||||||
cnt = int(cnt1 + cnt2)
|
cnt = int(cnt1 + cnt2)
|
||||||
print ("truecnt: " + str(truecnt))
|
# print ("truecnt: " + str(truecnt))
|
||||||
print ("cnt1: " + str(cnt1))
|
print ("cnt1: " + str(cnt1))
|
||||||
print ("cnt2: " + str(cnt2))
|
print ("cnt2: " + str(cnt2))
|
||||||
print (str(cnt) + " results")
|
print (str(cnt) + " results")
|
||||||
|
|
Loading…
Reference in a new issue