From 930a399d28b0cbe79c4b8d937b01ed0084c88c6b Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Tue, 12 May 2020 15:59:55 +0200 Subject: [PATCH] fix cache dir for new remote libs --- src/be/nikiroo/fanfix/Instance.java | 5 +++++ 1 file changed, 5 insertions(+) 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); } -- 2.27.0