mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-21 23:38:50 -05:00
Experiment with artwork thumbnail support
This commit is contained in:
parent
ed1a0fa09c
commit
6239dbb1c8
@ -37,7 +37,7 @@ import net.filebot.web.EpisodeListProvider;
|
||||
import net.filebot.web.FanartTVClient;
|
||||
import net.filebot.web.ID3Lookup;
|
||||
import net.filebot.web.LocalSearch;
|
||||
import net.filebot.web.MinamiDB;
|
||||
import net.filebot.web.Manami;
|
||||
import net.filebot.web.Movie;
|
||||
import net.filebot.web.MovieIdentificationService;
|
||||
import net.filebot.web.MusicIdentificationService;
|
||||
@ -258,7 +258,7 @@ public final class WebServices {
|
||||
|
||||
@Override
|
||||
public List<Artwork> getArtwork(int id, String category, Locale locale) throws Exception {
|
||||
Optional<URI> poster = MinamiDB.INSTANCE.getPicture(MinamiDB.Source.AniDB.getURI(id));
|
||||
Optional<URI> poster = Manami.INSTANCE.getPicture(Manami.Source.AniDB.getURI(id));
|
||||
if (poster.isPresent()) {
|
||||
Artwork artwork = new Artwork(Stream.of("picture"), poster.get().toURL(), null, null);
|
||||
return singletonList(artwork);
|
||||
|
@ -16,9 +16,9 @@ import net.filebot.Cache;
|
||||
import net.filebot.CacheType;
|
||||
import net.filebot.Resource;
|
||||
|
||||
public class MinamiDB implements Datasource {
|
||||
public class Manami implements Datasource {
|
||||
|
||||
public static final MinamiDB INSTANCE = new MinamiDB();
|
||||
public static final Manami INSTANCE = new Manami();
|
||||
|
||||
@Override
|
||||
public String getIdentifier() {
|
Loading…
Reference in New Issue
Block a user