[kemonoparty] fix file paths with backslashes (#7321)

This commit is contained in:
Mike Fährmann
2025-04-08 10:25:44 +02:00
parent 1772c233e4
commit 7f7af12c2f
2 changed files with 23 additions and 0 deletions

View File

@@ -123,6 +123,9 @@ class KemonopartyExtractor(Extractor):
g(post) for g in generators):
url = file["path"]
if "\\" in url:
file["path"] = url = url.replace("\\", "/")
match = find_hash(url)
if match:
file["hash"] = hash = match.group(1)