[wikimedia] fix non-English Fandom/wiki.gg articles (#6370)

This commit is contained in:
Mike Fährmann
2024-10-24 13:00:02 +02:00
parent 7877f8cf1a
commit 8f0b0b0735
3 changed files with 21 additions and 1 deletions

View File

@@ -193,7 +193,10 @@ class WikimediaArticleExtractor(WikimediaExtractor):
def __init__(self, match):
WikimediaExtractor.__init__(self, match)
path = match.group(match.lastindex)
path = self.groups[-1]
if path[2] == "/":
self.root = self.root + "/" + path[:2]
path = path[3:]
if path.startswith("wiki/"):
path = path[5:]