* backwards-compatibility fixes
This commit is contained in:
parent
9f564f27c5
commit
3d6578cbaf
|
@ -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)
|
|
||||||
return new URL("http", host, path);
|
|
||||||
|
|
||||||
// use mirror
|
// use mirror
|
||||||
return new URL(getMirror(mirrorType) + path);
|
String mirror = getMirror(mirrorType);
|
||||||
|
if (mirror != null && mirror.length() > 0) {
|
||||||
|
return new URL(mirror + path);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// use default server
|
||||||
|
return new URL("http", host, path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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
|
|
@ -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") }
|
||||||
|
|
Loading…
Reference in New Issue