mirror of
https://github.com/mitb-archive/filebot
synced 2025-03-10 06:20:27 -04:00
Easy access to TheMovieDB Alternative Titles in custom formats via Movie.getAlternativeTitles() extension function
This commit is contained in:
parent
368da08019
commit
736018deb4
@ -47,6 +47,7 @@ import net.filebot.similarity.Normalization;
|
|||||||
import net.filebot.util.FileUtilities;
|
import net.filebot.util.FileUtilities;
|
||||||
import net.filebot.web.Episode;
|
import net.filebot.web.Episode;
|
||||||
import net.filebot.web.EpisodeInfo;
|
import net.filebot.web.EpisodeInfo;
|
||||||
|
import net.filebot.web.Movie;
|
||||||
import net.filebot.web.Person;
|
import net.filebot.web.Person;
|
||||||
import net.filebot.web.SeriesInfo;
|
import net.filebot.web.SeriesInfo;
|
||||||
import net.filebot.web.SimpleDate;
|
import net.filebot.web.SimpleDate;
|
||||||
@ -593,6 +594,13 @@ public class ExpressionFormatMethods {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static Map<String, List<String>> getAlternativeTitles(Movie self) throws Exception {
|
||||||
|
if (self.getTmdbId() > 0) {
|
||||||
|
return TheMovieDB.getAlternativeTitles(self.getTmdbId());
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
private ExpressionFormatMethods() {
|
private ExpressionFormatMethods() {
|
||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user