* misc updates

This commit is contained in:
Reinhard Pointner 2012-03-30 02:57:43 +00:00
parent 6919cb8806
commit bd1c15ebf4
3 changed files with 5 additions and 3 deletions

View File

@ -343,7 +343,7 @@ public class OpenSubtitlesXmlRpc {
* @param status status code and message (e.g. 200 OK, 401 Unauthorized, ...) * @param status status code and message (e.g. 200 OK, 401 Unauthorized, ...)
* @throws XmlRpcFault thrown if status code is not OK * @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"); String status = (String) response.get("status");
// if there is no status at all, assume everything was OK // if there is no status at all, assume everything was OK

View File

@ -85,7 +85,7 @@
<p> <p>
You can easily define your own episode naming scheme. It uses <a href="http://groovy.codehaus.org">Groovy</a> expressions, You can easily define your own episode naming scheme. It uses <a href="http://groovy.codehaus.org">Groovy</a> expressions,
which means that you can do pretty much anything, especially if you know a little bit about programming. 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 <a href="http://filebot.sourceforge.net/forums/viewtopic.php?f=5&amp;t=2">predefined format expressions</a> for all kinds of scenarios in the forums. Ready for you to just copy &amp; paste. You even get media info bindings. You can find <a href="http://filebot.sourceforge.net/forums/viewtopic.php?f=5&amp;t=2#p51">predefined format expressions</a> for all kinds of scenarios in the forums. Ready for you to just copy &amp; paste.
</p> </p>
<h2 id="examples">Examples</h2> <h2 id="examples">Examples</h2>
<p> <p>

View File

@ -29,7 +29,9 @@ def fetchNfo(outputFile, movieInfo) {
<genre>${!genres.empty ? genres[0] : ''}</genre> <genre>${!genres.empty ? genres[0] : ''}</genre>
<id>tt${imdbId.pad(7)}</id> <id>tt${imdbId.pad(7)}</id>
</movie> </movie>
''').saveAs(outputFile) ''')
.replaceAll(/\t|\r|\n/, '') // xbmc can't handle leading/trailing whitespace properly
.saveAs(outputFile)
} }