mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-10-06 07:32:38 +02:00
Compare commits
2 Commits
deploy-030
...
deploy-031
Author | SHA1 | Date | |
---|---|---|---|
|
c91cf49630 | ||
|
8503030f18 |
@@ -199,16 +199,19 @@ public class SearchOperator {
|
|||||||
return new EdgeUrl("https", new EdgeDomain("breezewiki.com"), null, "/" + subdomain + path.substring(wikiIndex), null);
|
return new EdgeUrl("https", new EdgeDomain("breezewiki.com"), null, "/" + subdomain + path.substring(wikiIndex), null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
else if (topdomain.equals("medium.com")) {
|
else if (topdomain.equals("medium.com")) {
|
||||||
if (!subdomain.isBlank()) {
|
int slashIndex = path.indexOf("/", 1);
|
||||||
return new EdgeUrl("https", new EdgeDomain("scribe.rip"), null, path, null);
|
if (slashIndex >= 0) {
|
||||||
|
if (!subdomain.isBlank()) {
|
||||||
|
return new EdgeUrl("https", new EdgeDomain("scribe.rip"), null, path, null);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
String article = path.substring(slashIndex);
|
||||||
|
return new EdgeUrl("https", new EdgeDomain("scribe.rip"), null, article, null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
}*/
|
||||||
String article = path.substring(path.indexOf("/", 1));
|
|
||||||
return new EdgeUrl("https", new EdgeDomain("scribe.rip"), null, article, null);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
return url;
|
return url;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -230,19 +230,19 @@ public class SearchOperator {
|
|||||||
return new EdgeUrl("https", new EdgeDomain("breezewiki.com"), null, "/" + subdomain + path.substring(wikiIndex), null);
|
return new EdgeUrl("https", new EdgeDomain("breezewiki.com"), null, "/" + subdomain + path.substring(wikiIndex), null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
else if (topdomain.equals("medium.com")) {
|
else if (topdomain.equals("medium.com")) {
|
||||||
if (!subdomain.isBlank()) {
|
int slashIndex = path.indexOf("/", 1);
|
||||||
return new EdgeUrl("https", new EdgeDomain("scribe.rip"), null, path, null);
|
if (slashIndex >= 0) {
|
||||||
}
|
if (!subdomain.isBlank()) {
|
||||||
else {
|
return new EdgeUrl("https", new EdgeDomain("scribe.rip"), null, path, null);
|
||||||
int slashIndex = path.indexOf("/", 1);
|
}
|
||||||
if (slashIndex >= 0) {
|
else {
|
||||||
String article = path.substring(slashIndex);
|
String article = path.substring(slashIndex);
|
||||||
return new EdgeUrl("https", new EdgeDomain("scribe.rip"), null, article, null);
|
return new EdgeUrl("https", new EdgeDomain("scribe.rip"), null, article, null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}*/
|
||||||
}
|
|
||||||
return url;
|
return url;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user