1
0
mirror of https://github.com/mitb-archive/filebot synced 2025-03-10 06:20:27 -04:00

* clean clean

This commit is contained in:
Reinhard Pointner 2011-12-28 14:15:39 +00:00
parent bb8f4fb3e7
commit 5530bc47f5
4 changed files with 10 additions and 3 deletions

View File

@ -169,10 +169,16 @@ public final class WebRequest {
// read response // read response
int contentLength = connection.getContentLength(); int contentLength = connection.getContentLength();
String encoding = connection.getContentEncoding();
InputStream in = connection.getInputStream(); 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 { try {
// read all // read all
buffer.transferFully(in); buffer.transferFully(in);

View File

@ -175,6 +175,7 @@
<li>Mac OS X app bundle: <a onclick="_gaq.push(['_trackPageview', '/download/FileBot.app'])" target="_blank" href="download.php?type=app">FileBot_@{version}.app</a> (<strong>15MB</strong>)</li> <li>Mac OS X app bundle: <a onclick="_gaq.push(['_trackPageview', '/download/FileBot.app'])" target="_blank" href="download.php?type=app">FileBot_@{version}.app</a> (<strong>15MB</strong>)</li>
<li>Windows installer: <a onclick="_gaq.push(['_trackPageview', '/download/FileBot_x86.msi'])" target="_blank" href="download.php?type=msi&amp;arch=x86">FileBot_@{version}_x86.msi</a> or <a onclick="_gaq.push(['_trackPageview', '/download/FileBot_x64.msi'])" target="_blank" href="download.php?type=msi&amp;arch=x64">FileBot_@{version}_x64.msi</a> (<strong>13.2MB</strong>)</li> <li>Windows installer: <a onclick="_gaq.push(['_trackPageview', '/download/FileBot_x86.msi'])" target="_blank" href="download.php?type=msi&amp;arch=x86">FileBot_@{version}_x86.msi</a> or <a onclick="_gaq.push(['_trackPageview', '/download/FileBot_x64.msi'])" target="_blank" href="download.php?type=msi&amp;arch=x64">FileBot_@{version}_x64.msi</a> (<strong>13.2MB</strong>)</li>
<li>Debian packages: <a onclick="_gaq.push(['_trackPageview', '/download/filebot_i386.deb'])" target="_blank" href="download.php?type=deb&amp;arch=i386">filebot_@{version}_i386.deb</a> or <a onclick="_gaq.push(['_trackPageview', '/download/filebot_amd64.deb'])" target="_blank" href="download.php?type=deb&amp;arch=amd64">filebot_@{version}_amd64.deb</a> (<strong>13.2MB</strong>)</li> <li>Debian packages: <a onclick="_gaq.push(['_trackPageview', '/download/filebot_i386.deb'])" target="_blank" href="download.php?type=deb&amp;arch=i386">filebot_@{version}_i386.deb</a> or <a onclick="_gaq.push(['_trackPageview', '/download/filebot_amd64.deb'])" target="_blank" href="download.php?type=deb&amp;arch=amd64">filebot_@{version}_amd64.deb</a> (<strong>13.2MB</strong>)</li>
<li>Portable: <a onclick="_gaq.push(['_trackPageview', '/download/FileBot-portable.zip'])" target="_blank" href="download.php?type=portable">FileBot-@{version}-portable.zip</a> (<strong>12MB</strong>)</li>
<li>Source Zip: <a onclick="_gaq.push(['_trackPageview', '/download/filebot-src.zip'])" target="_blank" href="download.php?type=src">filebot-@{version}-src.zip</a> (<strong>450kB</strong>)</li> <li>Source Zip: <a onclick="_gaq.push(['_trackPageview', '/download/filebot-src.zip'])" target="_blank" href="download.php?type=src">filebot-@{version}-src.zip</a> (<strong>450kB</strong>)</li>
</ul> </ul>
</div> </div>

View File

@ -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) { def fetchArtwork(outputFile, movieInfo, artworkType, artworkSize) {

View File

@ -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) { def fetchBanner(outputFile, series, bannerType, bannerType2, season = null) {