diff options
author | Bananeweizen <bananeweizen@gmx.de> | 2012-12-22 08:30:36 +0100 |
---|---|---|
committer | Bananeweizen <bananeweizen@gmx.de> | 2012-12-22 08:30:36 +0100 |
commit | 55c4d8066a9e0e3e7b86030057da6733721a6d03 (patch) | |
tree | 9c874f1f1b7bbbd3549281a892786bb9978f3012 /main/src/cgeo/geocaching/connector/gc | |
parent | 3613ad6fca5b383370ae43b9b42ed02be0bdb044 (diff) | |
download | cgeo-55c4d8066a9e0e3e7b86030057da6733721a6d03.zip cgeo-55c4d8066a9e0e3e7b86030057da6733721a6d03.tar.gz cgeo-55c4d8066a9e0e3e7b86030057da6733721a6d03.tar.bz2 |
fix #2282: change recognition of unpublished caches
Diffstat (limited to 'main/src/cgeo/geocaching/connector/gc')
-rw-r--r-- | main/src/cgeo/geocaching/connector/gc/GCConstants.java | 3 | ||||
-rw-r--r-- | main/src/cgeo/geocaching/connector/gc/GCParser.java | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/connector/gc/GCConstants.java b/main/src/cgeo/geocaching/connector/gc/GCConstants.java index de6a4d8..ca6883c 100644 --- a/main/src/cgeo/geocaching/connector/gc/GCConstants.java +++ b/main/src/cgeo/geocaching/connector/gc/GCConstants.java @@ -165,8 +165,9 @@ public final class GCConstants { public final static String STRING_PREMIUMONLY_2 = "Sorry, the owner of this listing has made it viewable to Premium Members only."; public final static String STRING_PREMIUMONLY_1 = "has chosen to make this cache listing visible to Premium Members only."; - public final static String STRING_UNPUBLISHED_OWNER = "Cache is Unpublished"; + public final static String STRING_UNPUBLISHED_OWNER = "cache has not been published yet"; public final static String STRING_UNPUBLISHED_OTHER = "you cannot view this cache listing until it has been published"; + public final static String STRING_UNPUBLISHED_FROM_SEARCH = "UnpublishedCacheSearchWidget"; public final static String STRING_UNKNOWN_ERROR = "An Error Has Occurred"; public final static String STRING_DISABLED = "<li>This cache is temporarily unavailable."; public final static String STRING_ARCHIVED = "<li>This cache has been archived,"; diff --git a/main/src/cgeo/geocaching/connector/gc/GCParser.java b/main/src/cgeo/geocaching/connector/gc/GCParser.java index 588ca1b..d2896bd 100644 --- a/main/src/cgeo/geocaching/connector/gc/GCParser.java +++ b/main/src/cgeo/geocaching/connector/gc/GCParser.java @@ -334,7 +334,7 @@ public abstract class GCParser { final SearchResult searchResult = new SearchResult(); - if (page.contains(GCConstants.STRING_UNPUBLISHED_OTHER) || page.contains(GCConstants.STRING_UNPUBLISHED_OWNER)) { + if (page.contains(GCConstants.STRING_UNPUBLISHED_OTHER) || page.contains(GCConstants.STRING_UNPUBLISHED_OWNER) || page.contains(GCConstants.STRING_UNPUBLISHED_FROM_SEARCH)) { searchResult.setError(StatusCode.UNPUBLISHED_CACHE); return searchResult; } |