* 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:
parent
f2e07377ef
commit
97f2bca288
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue