From 97f2bca28827f66c5b5e166e166d83b0a5274ec7 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Mon, 13 Feb 2012 10:18:00 +0000 Subject: [PATCH] * 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) --- .../net/sourceforge/filebot/format/MediaBindingBean.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/net/sourceforge/filebot/format/MediaBindingBean.java b/source/net/sourceforge/filebot/format/MediaBindingBean.java index 7386e2a2..ceb45342 100644 --- a/source/net/sourceforge/filebot/format/MediaBindingBean.java +++ b/source/net/sourceforge/filebot/format/MediaBindingBean.java @@ -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));