From c0498185d12c93b461109a615ec87af0be48240e Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Sat, 10 Aug 2013 07:54:39 +0000 Subject: [PATCH] * work around server-side url encoding issues --- source/net/sourceforge/filebot/web/FanartTV.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/net/sourceforge/filebot/web/FanartTV.java b/source/net/sourceforge/filebot/web/FanartTV.java index e75b069c..ebbba4c7 100644 --- a/source/net/sourceforge/filebot/web/FanartTV.java +++ b/source/net/sourceforge/filebot/web/FanartTV.java @@ -2,8 +2,9 @@ package net.sourceforge.filebot.web; -import static net.sourceforge.filebot.web.WebRequest.*; -import static net.sourceforge.tuned.XPathUtilities.*; +import static net.sourceforge.filebot.web.WebRequest.getDocument; +import static net.sourceforge.tuned.XPathUtilities.getAttribute; +import static net.sourceforge.tuned.XPathUtilities.selectNodes; import java.io.File; import java.io.Serializable; @@ -150,7 +151,7 @@ public class FanartTV { public URL getUrl() { try { - return new URL(fields.get(FanartProperty.url)); + return new URL(fields.get(FanartProperty.url).replaceAll(" ", "%20")); // work around server-side url encoding issues } catch (Exception e) { return null; }