aboutsummaryrefslogtreecommitdiffstats
path: root/main/src
diff options
context:
space:
mode:
authorblafoo <github@blafoo.de>2011-12-15 22:38:35 +0100
committerblafoo <github@blafoo.de>2011-12-15 22:38:35 +0100
commit1e6d57ae6183d4a5d1a2f378794a67337a05dacf (patch)
tree29cc6a5f4e421864a7af26beb82cdb59569603dc /main/src
parente11d9f794869705ee289faa71e0228389f7fbdaa (diff)
downloadcgeo-1e6d57ae6183d4a5d1a2f378794a67337a05dacf.zip
cgeo-1e6d57ae6183d4a5d1a2f378794a67337a05dacf.tar.gz
cgeo-1e6d57ae6183d4a5d1a2f378794a67337a05dacf.tar.bz2
Hi-res spoiler images. Fixes #878
Diffstat (limited to 'main/src')
-rw-r--r--main/src/cgeo/geocaching/cgBase.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/cgBase.java b/main/src/cgeo/geocaching/cgBase.java
index c61eed8..c8f7a9c 100644
--- a/main/src/cgeo/geocaching/cgBase.java
+++ b/main/src/cgeo/geocaching/cgBase.java
@@ -979,7 +979,9 @@ public class cgBase {
final Matcher matcherSpoilersInside = GCConstants.PATTERN_SPOILERSINSIDE.matcher(spoilers);
while (matcherSpoilersInside.find()) {
- String url = matcherSpoilersInside.group(1);
+ // the original spoiler URL (include .../display/... contains a low-resolution image
+ // if we shorten the URL we get the original-resolution image
+ String url = matcherSpoilersInside.group(1).replace("/display", "");
String title = null;
if (matcherSpoilersInside.group(2) != null) {