minor fixes

This commit is contained in:
Mathhew
2022-09-16 15:35:47 +08:00
parent 890b934fe9
commit 8db24498d0
2 changed files with 5 additions and 4 deletions

View File

@@ -52,8 +52,7 @@ class wwwGetchu(Parser):
idn = re.findall('\d+',number)[0]
return "http://www.getchu.com/soft.phtml?id=" + idn
else:
self.number = quote(number, encoding="euc_jp")
queryUrl = self.GETCHU_WWW_SEARCH_URL.replace("_WORD_", self.number)
queryUrl = self.GETCHU_WWW_SEARCH_URL.replace("_WORD_", quote(number, encoding="euc_jp"))
# NOTE dont know why will try 2 times
retry = 2
for i in range(retry):