mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-24 13:19:02 +00:00
(sideload) Fix filename error in dealing with stackoverflow files
This commit is contained in:
parent
c6313a5906
commit
c88f132057
@ -80,15 +80,12 @@ public class StackExchangeSideloadHelper {
|
|||||||
|
|
||||||
// Stackoverflow is special, because it has one 7z file per site
|
// Stackoverflow is special, because it has one 7z file per site
|
||||||
// (we only want Posts)
|
// (we only want Posts)
|
||||||
|
if (fileName.equals("stackoverflow.com-Posts.7z")) {
|
||||||
if (fileName.equals("stackoverflow.com-Posts.7z"))
|
|
||||||
return Optional.of("www.stackoverflow.com");
|
return Optional.of("www.stackoverflow.com");
|
||||||
else if (fileName.startsWith("stackoverflow.com-")) {
|
} else if (fileName.startsWith("stackoverflow.com-")) {
|
||||||
return Optional.empty();
|
return Optional.empty();
|
||||||
}
|
}
|
||||||
|
|
||||||
// For stackexchange, we filter out the meta archives
|
|
||||||
|
|
||||||
// We are not interested in the meta files
|
// We are not interested in the meta files
|
||||||
if (fileName.startsWith("meta."))
|
if (fileName.startsWith("meta."))
|
||||||
return Optional.empty();
|
return Optional.empty();
|
||||||
|
Loading…
Reference in New Issue
Block a user