* backwards-compatibility fixes

This commit is contained in:
Reinhard Pointner 2013-03-25 09:35:17 +00:00
parent 9f564f27c5
commit 3d6578cbaf
3 changed files with 12 additions and 8 deletions

View File

@ -326,12 +326,16 @@ public class TheTVDBClient extends AbstractEpisodeListProvider {
protected URL getResource(MirrorType mirrorType, String path) throws Exception { protected URL getResource(MirrorType mirrorType, String path) throws Exception {
// use default server if (mirrorType != null) {
if (mirrorType == null) // use mirror
return new URL("http", host, path); String mirror = getMirror(mirrorType);
if (mirror != null && mirror.length() > 0) {
return new URL(mirror + path);
}
}
// use mirror // use default server
return new URL(getMirror(mirrorType) + path); return new URL("http", host, path);
} }

View File

@ -1,6 +1,6 @@
HIMYM How I Met your Mother HIMYM How I Met your Mother
Hml8p Homeland Hml8p Homeland
hoc House of Cards hoc House of Cards
NCIS.LA NCIS: Los Angeles
M.A.S.H M*A*S*H M.A.S.H M*A*S*H
MASH M*A*S*H MASH M*A*S*H
NCIS.LA NCIS: Los Angeles

View File

@ -3,7 +3,7 @@ def input = []
def failOnError = _args.conflict == 'fail' def failOnError = _args.conflict == 'fail'
// CHECK MINIMUM VERSION // CHECK MINIMUM VERSION
// if (net.sourceforge.filebot.Settings.applicationRevisionNumber < 1540) { throw new Exception("Please update to FileBot v3.5 or higher") } if (net.sourceforge.filebot.Settings.applicationRevisionNumber < 1540) { throw new Exception("Please update to FileBot v3.5 or higher") }
// print input parameters // print input parameters
_args.bindings?.each{ _log.fine("Parameter: $it.key = $it.value") } _args.bindings?.each{ _log.fine("Parameter: $it.key = $it.value") }