From bd1c15ebf4bb8a908703c13c0878f371fb7c2ee7 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Fri, 30 Mar 2012 02:57:43 +0000 Subject: [PATCH] * misc updates --- source/net/sourceforge/filebot/web/OpenSubtitlesXmlRpc.java | 2 +- website/naming.html | 2 +- website/scripts/artwork.tmdb.groovy | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/source/net/sourceforge/filebot/web/OpenSubtitlesXmlRpc.java b/source/net/sourceforge/filebot/web/OpenSubtitlesXmlRpc.java index da49fd55..898e7187 100644 --- a/source/net/sourceforge/filebot/web/OpenSubtitlesXmlRpc.java +++ b/source/net/sourceforge/filebot/web/OpenSubtitlesXmlRpc.java @@ -343,7 +343,7 @@ public class OpenSubtitlesXmlRpc { * @param status status code and message (e.g. 200 OK, 401 Unauthorized, ...) * @throws XmlRpcFault thrown if status code is not OK */ - protected static void checkResponse(Map response) throws XmlRpcFault { + protected void checkResponse(Map response) throws XmlRpcFault { String status = (String) response.get("status"); // if there is no status at all, assume everything was OK diff --git a/website/naming.html b/website/naming.html index eb71c228..a321f5ac 100644 --- a/website/naming.html +++ b/website/naming.html @@ -85,7 +85,7 @@

You can easily define your own episode naming scheme. It uses Groovy expressions, which means that you can do pretty much anything, especially if you know a little bit about programming. - You even get media info bindings. You can find predefined format expressions for all kinds of scenarios in the forums. Ready for you to just copy & paste. + You even get media info bindings. You can find predefined format expressions for all kinds of scenarios in the forums. Ready for you to just copy & paste.

Examples

diff --git a/website/scripts/artwork.tmdb.groovy b/website/scripts/artwork.tmdb.groovy index 545a2eef..c4d8d15f 100644 --- a/website/scripts/artwork.tmdb.groovy +++ b/website/scripts/artwork.tmdb.groovy @@ -29,7 +29,9 @@ def fetchNfo(outputFile, movieInfo) { ${!genres.empty ? genres[0] : ''} tt${imdbId.pad(7)} - ''').saveAs(outputFile) + ''') + .replaceAll(/\t|\r|\n/, '') // xbmc can't handle leading/trailing whitespace properly + .saveAs(outputFile) }