* binding fetching all episodes info from TheTVDB for the given episode info object (may be useful for some special cases but will remain unofficial/undocumented)

This commit is contained in:
Reinhard Pointner 2012-02-13 10:18:00 +00:00
parent f2e07377ef
commit 97f2bca288
1 changed files with 7 additions and 0 deletions

View File

@ -25,6 +25,7 @@ import net.sourceforge.filebot.web.Date;
import net.sourceforge.filebot.web.Episode;
import net.sourceforge.filebot.web.Movie;
import net.sourceforge.filebot.web.MoviePart;
import net.sourceforge.filebot.web.SortOrder;
import net.sourceforge.tuned.FileUtilities;
@ -317,6 +318,12 @@ public class MediaBindingBean {
}
@Define("episodes")
public Object getEpisodeList() throws Exception {
return WebServices.TheTVDB.getEpisodeList(WebServices.TheTVDB.search(getEpisode().getSeriesName()).get(0), SortOrder.Airdate, Locale.ENGLISH);
}
@Define("media")
public Object getGeneralMediaInfo() {
return new AssociativeScriptObject(getMediaInfo().snapshot(StreamKind.General, 0));