(sideload) Fix filename error in dealing with stackoverflow files

This commit is contained in:
Viktor Lofgren 2024-02-06 11:10:03 +01:00
parent c6313a5906
commit c88f132057

View File

@ -80,15 +80,12 @@ public class StackExchangeSideloadHelper {
// Stackoverflow is special, because it has one 7z file per site
// (we only want Posts)
if (fileName.equals("stackoverflow.com-Posts.7z"))
if (fileName.equals("stackoverflow.com-Posts.7z")) {
return Optional.of("www.stackoverflow.com");
else if (fileName.startsWith("stackoverflow.com-")) {
} else if (fileName.startsWith("stackoverflow.com-")) {
return Optional.empty();
}
// For stackexchange, we filter out the meta archives
// We are not interested in the meta files
if (fileName.startsWith("meta."))
return Optional.empty();