1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-24 08:48:51 -05:00
This commit is contained in:
Reinhard Pointner 2016-04-05 18:06:16 +00:00
parent 8177a0959a
commit 8e6688facd

View File

@ -46,7 +46,7 @@ public class FanartTVClient implements Datasource {
String path = category + '/' + id; String path = category + '/' + id;
Cache cache = Cache.getCache(getName(), CacheType.Weekly); Cache cache = Cache.getCache(getName(), CacheType.Weekly);
Object json = cache.json(path, s -> getResource(s)).expire(Cache.ONE_WEEK); Object json = cache.json(path, s -> getResource(s)).expire(Cache.ONE_WEEK).get();
return asMap(json).entrySet().stream().flatMap(type -> { return asMap(json).entrySet().stream().flatMap(type -> {
return streamJsonObjects(type.getValue()).map(item -> { return streamJsonObjects(type.getValue()).map(item -> {