mirror of
https://gitlab.com/chicken-riders/RcGcDw.git
synced 2025-02-23 00:24:09 +00:00
Fixed #28
This commit is contained in:
parent
4ab60abc53
commit
4cced45338
|
@ -53,6 +53,7 @@ class MyHTMLParser(HTMLParser):
|
||||||
self.recent_href = "https:{rest}".format(rest=self.recent_href)
|
self.recent_href = "https:{rest}".format(rest=self.recent_href)
|
||||||
elif not self.recent_href.startswith("https"):
|
elif not self.recent_href.startswith("https"):
|
||||||
self.recent_href = "https://{wiki}.gamepedia.com".format(wiki=settings["wiki"]) + self.recent_href
|
self.recent_href = "https://{wiki}.gamepedia.com".format(wiki=settings["wiki"]) + self.recent_href
|
||||||
|
self.recent_href = self.recent_href.replace(")", "\)")
|
||||||
def handle_data(self, data):
|
def handle_data(self, data):
|
||||||
if self.recent_href:
|
if self.recent_href:
|
||||||
self.new_string = self.new_string+"[{}]({})".format(data, self.recent_href)
|
self.new_string = self.new_string+"[{}]({})".format(data, self.recent_href)
|
||||||
|
|
Loading…
Reference in a new issue