From: Niki Roo Date: Tue, 12 May 2020 13:59:55 +0000 (+0200) Subject: fix cache dir for new remote libs X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=930a399d28b0cbe79c4b8d937b01ed0084c88c6b;p=fanfix.git fix cache dir for new remote libs --- diff --git a/src/be/nikiroo/fanfix/Instance.java b/src/be/nikiroo/fanfix/Instance.java index a2cb90a..e0a0727 100644 --- a/src/be/nikiroo/fanfix/Instance.java +++ b/src/be/nikiroo/fanfix/Instance.java @@ -363,6 +363,11 @@ public class Instance { remoteDir.mkdirs(); if (host != null) { + host = host.replace("fanfix://", ""); + host = host.replace("http://", ""); + host = host.replace("https://", ""); + host = host.replaceAll("[^a-zA-Z0-9=+.-]", "_"); + return new File(remoteDir, host); }