mirror of
https://github.com/evilhero/mylar
synced 2025-02-02 12:31:44 +00:00
fixed some issues with : in searching
This commit is contained in:
parent
d06627d06a
commit
6c81414416
1 changed files with 4 additions and 3 deletions
|
@ -87,7 +87,6 @@ def MysterBinScrape(comsearch):
|
||||||
return mres
|
return mres
|
||||||
|
|
||||||
def GCDScraper(ComicName, ComicYear, Total, ComicID):
|
def GCDScraper(ComicName, ComicYear, Total, ComicID):
|
||||||
if ':' in ComicName: ComicName = re.sub(':', '', ComicName)
|
|
||||||
comicnm = ComicName
|
comicnm = ComicName
|
||||||
comicyr = ComicYear
|
comicyr = ComicYear
|
||||||
comicis = Total
|
comicis = Total
|
||||||
|
@ -180,10 +179,12 @@ def GCDScraper(ComicName, ComicYear, Total, ComicID):
|
||||||
if ComicName.startswith('The '):
|
if ComicName.startswith('The '):
|
||||||
ComicName = ComicName[4:]
|
ComicName = ComicName[4:]
|
||||||
return GCDScraper(ComicName, ComicYear, Total, ComicID)
|
return GCDScraper(ComicName, ComicYear, Total, ComicID)
|
||||||
|
if ':' in ComicName:
|
||||||
|
ComicName = re.sub(':', '', ComicName)
|
||||||
|
return GCDScraper(ComicName, ComicYear, Total, ComicID)
|
||||||
if 'and' in ComicName.lower():
|
if 'and' in ComicName.lower():
|
||||||
ComicName = ComicName.replace('and', '&')
|
ComicName = ComicName.replace('and', '&')
|
||||||
return GCDScraper(ComicName, ComicYear, Total, ComicID)
|
return GCDScraper(ComicName, ComicYear, Total, ComicID)
|
||||||
else:
|
|
||||||
return 'No Match'
|
return 'No Match'
|
||||||
gcdinfo = {}
|
gcdinfo = {}
|
||||||
gcdchoice = []
|
gcdchoice = []
|
||||||
|
|
Loading…
Reference in a new issue