1
0
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:
Reinhard Pointner 2019-05-18 21:07:56 +07:00
parent ed1a0fa09c
commit 6239dbb1c8
2 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -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() {