From 5530bc47f592de05dccac77675ed83eb26fc960f Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Wed, 28 Dec 2011 14:15:39 +0000 Subject: [PATCH] * clean clean --- source/net/sourceforge/filebot/web/WebRequest.java | 8 +++++++- website/index.html | 1 + website/scripts/artwork.tmdb.groovy | 2 +- website/scripts/artwork.tvdb.groovy | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/source/net/sourceforge/filebot/web/WebRequest.java b/source/net/sourceforge/filebot/web/WebRequest.java index d588070d..f94172c6 100644 --- a/source/net/sourceforge/filebot/web/WebRequest.java +++ b/source/net/sourceforge/filebot/web/WebRequest.java @@ -169,10 +169,16 @@ public final class WebRequest { // read response int contentLength = connection.getContentLength(); + String encoding = connection.getContentEncoding(); InputStream in = connection.getInputStream(); - ByteBufferOutputStream buffer = new ByteBufferOutputStream(contentLength >= 0 ? contentLength : 32 * 1024); + if ("gzip".equalsIgnoreCase(encoding)) + in = new GZIPInputStream(in); + else if ("deflate".equalsIgnoreCase(encoding)) { + in = new InflaterInputStream(in, new Inflater(true)); + } + ByteBufferOutputStream buffer = new ByteBufferOutputStream(contentLength >= 0 ? contentLength : 32 * 1024); try { // read all buffer.transferFully(in); diff --git a/website/index.html b/website/index.html index 858e8fae..5fa17a5c 100644 --- a/website/index.html +++ b/website/index.html @@ -175,6 +175,7 @@
  • Mac OS X app bundle: FileBot_@{version}.app (15MB)
  • Windows installer: FileBot_@{version}_x86.msi or FileBot_@{version}_x64.msi (13.2MB)
  • Debian packages: filebot_@{version}_i386.deb or filebot_@{version}_amd64.deb (13.2MB)
  • +
  • Portable: FileBot-@{version}-portable.zip (12MB)
  • Source Zip: filebot-@{version}-src.zip (450kB)
  • diff --git a/website/scripts/artwork.tmdb.groovy b/website/scripts/artwork.tmdb.groovy index be58a6a4..99f388e6 100644 --- a/website/scripts/artwork.tmdb.groovy +++ b/website/scripts/artwork.tmdb.groovy @@ -5,7 +5,7 @@ if (net.sourceforge.filebot.Settings.applicationRevisionNumber < 802) throw new /* - * Fetch series and season banners for all tv shows + * Fetch movie artwork. The movie is determined using the parent folders name. */ def fetchArtwork(outputFile, movieInfo, artworkType, artworkSize) { diff --git a/website/scripts/artwork.tvdb.groovy b/website/scripts/artwork.tvdb.groovy index 37229ef8..b9d167af 100644 --- a/website/scripts/artwork.tvdb.groovy +++ b/website/scripts/artwork.tvdb.groovy @@ -5,7 +5,7 @@ if (net.sourceforge.filebot.Settings.applicationRevisionNumber < 802) throw new /* - * Fetch series and season banners for all tv shows + * Fetch series and season banners for all tv shows. Series name is auto-detected if possible or the folder name is used. */ def fetchBanner(outputFile, series, bannerType, bannerType2, season = null) {