diff options
| author | blafoo <github@blafoo.de> | 2011-12-15 22:38:35 +0100 |
|---|---|---|
| committer | blafoo <github@blafoo.de> | 2011-12-15 22:38:35 +0100 |
| commit | 1e6d57ae6183d4a5d1a2f378794a67337a05dacf (patch) | |
| tree | 29cc6a5f4e421864a7af26beb82cdb59569603dc /main/src | |
| parent | e11d9f794869705ee289faa71e0228389f7fbdaa (diff) | |
| download | cgeo-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.java | 4 |
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) { |
