1
0
mirror of https://github.com/mitb-archive/filebot synced 2025-01-12 14:28:29 -05:00

Use secure_base_url configuration parameter

@see https://www.filebot.net/forums/viewtopic.php?f=6&t=5479
This commit is contained in:
Reinhard Pointner 2017-11-13 23:04:45 +01:00
parent 88ed6513c2
commit 3ac05fb006

View File

@ -308,8 +308,8 @@ public class TMDbClient implements MovieIdentificationService, ArtworkProvider {
}
try {
String mirror = (String) Cache.getCache(getName(), CacheType.Monthly).computeIfAbsent("configuration.base_url", it -> {
return getString(getMap(getConfiguration(), "images"), "base_url");
String mirror = (String) Cache.getCache(getName(), CacheType.Monthly).computeIfAbsent("configuration.secure_base_url", it -> {
return getString(getMap(getConfiguration(), "images"), "secure_base_url");
});
return new URL(mirror + "original" + path);
} catch (Exception e) {