Update of /cvsroot/sageplugins/webapp/WebContent/WEB-INF/tags/sage/functions/show
In directory vz-cvs-3.sog:/tmp/cvs-serv30090/WebContent/WEB-INF/tags/sage/functions/show
Added Files:
SupportsSeasonAndEpisode.tag
Log Message:
Display show season and episode
--- NEW FILE: SupportsSeasonAndEpisode.tag ---
<%@ tag body-content="empty"%>
<%@ tag import="java.lang.reflect.InvocationTargetException" %>
<%@ tag import="sage.SageTV" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ attribute name="show" required="true" type="java.lang.Object" %>
<%@ attribute name="var" required="true" rtexprvalue="false" %>
<%@ variable name-from-attribute="var" alias="varLocal" scope="AT_END" %>
<%
Object show = jspContext.getAttribute("show");
Boolean supportsSeasonAndEpisode = true;
try
{
SageTV.api("GetShowSeasonNumber", new Object[] {show});
}
catch (InvocationTargetException e)
{
supportsSeasonAndEpisode = false;
}
%>
<c:set var="varLocal" value="<%= supportsSeasonAndEpisode %>"/>
|