mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-23 08:18:52 -05:00
* refactoring
This commit is contained in:
parent
a43a9171c1
commit
38a046bf2d
@ -104,7 +104,7 @@ public class MediaBindingBean {
|
||||
if (infoObject instanceof Movie)
|
||||
return getMovie().getYear();
|
||||
if (infoObject instanceof AudioTrack)
|
||||
return ((SimpleDate) getReleaseDate()).getYear();
|
||||
return getReleaseDate().getYear();
|
||||
|
||||
return null;
|
||||
}
|
||||
|
@ -4,14 +4,8 @@ import java.net.URI;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
|
||||
import javax.swing.Icon;
|
||||
|
||||
public interface EpisodeListProvider extends Datasource {
|
||||
|
||||
public String getName();
|
||||
|
||||
public Icon getIcon();
|
||||
|
||||
public boolean hasSeasonSupport();
|
||||
|
||||
public List<SearchResult> search(String query, Locale locale) throws Exception;
|
||||
|
@ -6,14 +6,8 @@ import java.util.List;
|
||||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.swing.Icon;
|
||||
|
||||
public interface MovieIdentificationService extends Datasource {
|
||||
|
||||
public String getName();
|
||||
|
||||
public Icon getIcon();
|
||||
|
||||
public List<Movie> searchMovie(String query, Locale locale) throws Exception;
|
||||
|
||||
public Movie getMovieDescriptor(Movie movie, Locale locale) throws Exception;
|
||||
|
@ -4,14 +4,8 @@ import java.io.File;
|
||||
import java.util.Collection;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.swing.Icon;
|
||||
|
||||
public interface MusicIdentificationService extends Datasource {
|
||||
|
||||
String getName();
|
||||
|
||||
Icon getIcon();
|
||||
|
||||
Map<File, AudioTrack> lookup(Collection<File> files) throws Exception;
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user