Skip to content
This repository was archived by the owner on Nov 21, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/com/mcplusa/google/feeder/GSAContentItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
public class GSAContentItem {

protected String url = "";
//Set to true because why would you not want the GSA to immediately crawl?
protected boolean crawlImmediately = true;
protected String display_url = "";
protected String mimetype = "";
protected String content = "";
Expand All @@ -35,6 +37,16 @@ public String getUrl()
return url;
}

public boolean isCrawlImmediately()
{
return crawlImmediately;
}

public void setCrawlImmediately(boolean crawlImmediately)
{
this.crawlImmediately = crawlImmediately;
}

public void setDisplayUrl(String newDisplayUrl) {
display_url = newDisplayUrl;
}
Expand Down
8 changes: 8 additions & 0 deletions src/com/mcplusa/google/feeder/GSAFeed.java
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,14 @@ public void AddRecord(GSAContentItem item) {
if (item.getHasLastModified()) {
recordNode.setAttribute("last-modified", item.getLastModifiedUTC());
}

if (item.isCrawlImmediately()) {
recordNode.setAttribute("crawl-immediately", "true" );
} else {
recordNode.setAttribute("crawl-immediately", "false" );
}



recordNode.setAttribute("authmethod", item.getAuthMethod());
if (item.getAcl() != null) {
Expand Down