1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-22 07:48:52 -05:00

Require non-place holder URIs

This commit is contained in:
Reinhard Pointner 2019-05-18 23:11:12 +07:00
parent 785072f159
commit d5e21795e4

View File

@ -66,7 +66,7 @@ public class Manami implements Datasource {
} }
public Optional<URI> getPicture(String uri) throws Exception { public Optional<URI> getPicture(String uri) throws Exception {
return getRecord(uri).map(r -> getStringValue(r, "picture", URI::create)); return getRecord(uri).map(r -> getStringValue(r, "picture", URI::create)).filter(r -> r.getPath().endsWith(".jpg"));
} }
public Set<Integer> getDeadEntries(Source source) throws Exception { public Set<Integer> getDeadEntries(Source source) throws Exception {