mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-23 21:18:58 +00:00
Bugfix crawl plan, doesn't use rewrite() everywhere
This commit is contained in:
parent
d0c72ceb7e
commit
16e37672fc
@ -31,7 +31,7 @@ public class CrawlPlan {
|
||||
private static String rootDirRewrite = System.getProperty("crawl.rootDirRewrite");
|
||||
|
||||
public Path getJobSpec() {
|
||||
return Path.of(jobSpec);
|
||||
return Path.of(rewrite(jobSpec));
|
||||
}
|
||||
|
||||
@AllArgsConstructor @NoArgsConstructor @ToString
|
||||
@ -53,7 +53,7 @@ public class CrawlPlan {
|
||||
}
|
||||
String[] parts = rootDirRewrite.split(":");
|
||||
|
||||
return dir.replace(parts[0], parts[1]);
|
||||
return dir.replaceFirst(parts[0], parts[1]);
|
||||
}
|
||||
|
||||
public Path getCrawledFilePath(String fileName) {
|
||||
|
Loading…
Reference in New Issue
Block a user