mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-24 08:48:51 -05:00
Fix bugs
This commit is contained in:
parent
8177a0959a
commit
8e6688facd
@ -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 -> {
|
||||||
|
Loading…
Reference in New Issue
Block a user