diff options
author | Damian Minkov <damencho@jitsi.org> | 2012-11-21 12:37:50 +0000 |
---|---|---|
committer | Damian Minkov <damencho@jitsi.org> | 2012-11-21 12:37:50 +0000 |
commit | 4f3d81f0ccdecc7528114f7470a0c2749a908982 (patch) | |
tree | dbd764bc0263ec724bf77c78a938a946a07368f8 /src/net/java/sip/communicator/impl/replacement/bliptv/ReplacementServiceBliptvImpl.java | |
parent | e2ef092f63761dccd574e0b10b9e6f0f06bc852d (diff) | |
download | jitsi-4f3d81f0ccdecc7528114f7470a0c2749a908982.zip jitsi-4f3d81f0ccdecc7528114f7470a0c2749a908982.tar.gz jitsi-4f3d81f0ccdecc7528114f7470a0c2749a908982.tar.bz2 |
Replaces json lib.
Diffstat (limited to 'src/net/java/sip/communicator/impl/replacement/bliptv/ReplacementServiceBliptvImpl.java')
-rw-r--r-- | src/net/java/sip/communicator/impl/replacement/bliptv/ReplacementServiceBliptvImpl.java | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/net/java/sip/communicator/impl/replacement/bliptv/ReplacementServiceBliptvImpl.java b/src/net/java/sip/communicator/impl/replacement/bliptv/ReplacementServiceBliptvImpl.java index 3534c26..87ad46d 100644 --- a/src/net/java/sip/communicator/impl/replacement/bliptv/ReplacementServiceBliptvImpl.java +++ b/src/net/java/sip/communicator/impl/replacement/bliptv/ReplacementServiceBliptvImpl.java @@ -11,7 +11,7 @@ import java.net.*; import net.java.sip.communicator.service.replacement.*; import net.java.sip.communicator.util.*; -import org.json.*; +import org.json.simple.*; /** * Implements the {@link ReplacementService} to provide previews for Blip.tv @@ -78,18 +78,19 @@ public class ReplacementServiceBliptvImpl holder += inputLine; in.close(); - JSONObject wrapper = new JSONObject(holder); + JSONObject wrapper = (JSONObject)JSONValue + .parseWithException(holder); - String thumbUrl = wrapper.getString("thumbnail_url"); + String thumbUrl = (String)wrapper.get("thumbnail_url"); if (thumbUrl != null) { return thumbUrl; } } - catch (Exception e) + catch (Throwable e) { - e.printStackTrace(); + logger.error("Error parsing", e); } return sourceString; |