<?xml version="1.0" encoding="UTF-8"?>
<includes>
	<include name="Season_View_54">
		<!-- season 54 -->
		<control type="grouplist" id="540">
			<include>Visible_OpenClose</include>
			<visible>Control.IsVisible(54)</visible>
			<width>100%</width>
			<height>100%</height>
			<orientation>vertical</orientation>
			<usecontrolcoords>true</usecontrolcoords>
			<pagecontrol>17</pagecontrol>
			<include>ScrollTime</include>
			<itemgap>-80</itemgap>
			<!-- Meta -->
			<control type="group">
				<width>1920</width>
				<height>1077</height>
				<control type="group">
					<top>128</top>
					<height>435</height>
					<width>1920</width>
					<!-- poster -->
					<include>MetaPoster</include>
					<!-- meta -->
					<control type="group">
						<visible>!ListItem.IsParentFolder</visible>
						<top>-5</top>
						<left>370</left>
						<height>500</height>
						<right>70</right>
						<!-- Title -->
						<control type="label">
							<right>440</right>
							<height>50</height>
							<label>$INFO[ListItem.TVShowTitle]</label>
							<aligny>top</aligny>
							<font>Reg37</font>
							<visible>!String.IsEqual(ListItem.Label,$LOCALIZE[20366])</visible>
						</control>
						<control type="label">
							<right>440</right>
							<height>50</height>
							<label>$INFO[ListItem(1).TVShowTitle]</label>
							<aligny>top</aligny>
							<font>Reg37</font>
							<visible>String.IsEqual(ListItem.Label,$LOCALIZE[20366])</visible>
						</control>
						<control type="label">
							<top>50</top>
							<right>440</right>
							<height>60</height>
							<label>$INFO[ListItem.Title]</label>
							<aligny>top</aligny>
							<font>Reg37</font>
							<visible>![String.StartsWith(ListItem.Path,plugin://plugin.video.embycon) + String.IsEqual(ListItem.Label,All)]</visible>
						</control>
						<control type="label">
							<top>50</top>
							<right>440</right>
							<height>60</height>
							<label>$LOCALIZE[20366]</label>
							<aligny>top</aligny>
							<font>Reg37</font>
							<visible>String.StartsWith(ListItem.Path,plugin://plugin.video.embycon) + String.IsEqual(ListItem.Label,All)</visible>
						</control>
						<!-- meta -->
						<control type="group">
							<top>110</top>
							<right>440</right>
							<height>40</height>
							<include>MetaSeasonInfos</include>
						</control>
						<!-- buttons -->
						<control type="list" id="100">
							<top>138</top>
							<height>130</height>
							<width>100%</width>
							<orientation>horizontal</orientation>
							<defaultcontrol always="true">0</defaultcontrol>
							<onright>noop</onright>
							<onleft>900</onleft>
							<onback>50</onback>
							<ondown>50</ondown>
							<onup>6666</onup>
							<include>FocusBounce</include>
							<itemlayout height="130" width="146">
								<include content="IconMenu">
									<param name="id" value="100"/>
								</include>
							</itemlayout>
							<focusedlayout height="130" width="146">
								<include content="IconMenu">
									<param name="id" value="100"/>
									<param name="focused" value="true"/>
								</include>
							</focusedlayout>
							<content>
								<item>
									<label>$LOCALIZE[1024]</label>
									<property name="icon">&#xf24b;</property>
									<include>ClearFocusBounceBefore</include>
									<onclick>Select</onclick>
								</item>
								<item>
									<label>$LOCALIZE[208]</label>
									<property name="icon">&#xf40a;</property>
									<include>ClearFocusBounceBefore</include>
									<onclick>RunScript(script.embuary.helper,action=playfolder,dbid=$INFO[ListItem.DBID],type=season)</onclick>
									<visible>!String.IsEmpty(ListItem.DBID) + String.IsEqual(ListItem.DBType,season) + !String.IsEqual(ListItem.Label,$LOCALIZE[20366])</visible>
								</item>
								<item>
									<label>$LOCALIZE[31323]</label>
									<property name="icon">&#xf49d;</property>
									<include>ClearFocusBounceBefore</include>
									<onclick>RunScript(script.embuary.helper,action=playfolder,dbid=$INFO[ListItem.DBID],type=season,shuffle=true)</onclick>
									<visible>!String.IsEmpty(ListItem.DBID) + String.IsEqual(ListItem.DBType,season) + !String.IsEqual(ListItem.Label,$LOCALIZE[20366])</visible>
								</item>
								<item>
									<visible>!String.IsEmpty(ListItem.Plot)</visible>
									<label>$LOCALIZE[207]</label>
									<property name="icon">&#xf9a9;</property>
									<onclick>RunScript(script.embuary.helper,action=textviewer,header='$ESCINFO[ListItem.TVShowTitle]',message='$ESCINFO[ListItem.Plot]')</onclick>
								</item>
								<item>
									<label>$LOCALIZE[16101]</label>
									<property name="icon">&#xfe6e;</property>
									<include>ToggleWatchedAction</include>
									<visible>!$EXP[IsWatched]</visible>
								</item>
								<item>
									<label>$LOCALIZE[16102]</label>
									<property name="icon">&#xfe6e;</property>
									<property name="color">red</property>
									<include>ToggleWatchedAction</include>
									<visible>$EXP[IsWatched]</visible>
								</item>
								<item>
									<visible>$EXP[HasEmbyContext] | $EXP[HasEmbyConContext]</visible>
									<label>$LOCALIZE[31366]</label>
									<property name="icon">&#xf1d8;</property>
									<onclick condition="$EXP[HasEmbyContext]">RunScript(special://home/addons/plugin.video.emby/context.py)</onclick>
									<onclick condition="$EXP[HasEmbyConContext]">RunPlugin(plugin://plugin.video.embycon?mode=SHOW_MENU&amp;item_id=$INFO[ListItem.Property(id)])</onclick>
								</item>
							</content>
						</control>
						<!-- genre -->
						<control type="group">
							<top>259</top>
							<include>MetaGenre</include>
						</control>
						<!-- plot -->
						<control type="textbox">
							<top>296</top>
							<width>100%</width>
							<height max="100">auto</height>
							<align>justify</align>
							<aligny>top</aligny>
							<label>$VAR[SetViewPlot]</label>
							<font>Light24</font>
							<autoscroll>false</autoscroll>
						</control>
					</control>
					<!-- logo -->
					<include>MetaClearlogo</include>
				</control>
				<control type="group">
					<top>524</top>
					<!-- Seasons -->
					<include content="PosterWidget">
						<param name="id" value="54"/>
						<param name="onup" value="100"/>
						<param name="ondown" value="200"/>
						<param name="headline" value="$LOCALIZE[33054]"/>
						<param name="sublabel" value=""/>
						<param name="use_custom_content" value="false"/>
						<param name="height" value="553"/>
						<param name="content_visible" value="$EXP[SeasonViewVisible]"/>
						<param name="list_name" value="$LOCALIZE[31199]"/>
					</include>
				</control>
			</control>
			<!-- Next Up -->
			<include content="WideWidget">
				<param name="visible" value="!String.StartsWith(ListItem.Path,plugin://plugin.video.embycon)"/>
				<param name="force_visible" value="Integer.IsGreater(Container(2002).NumItems,0)"/>
				<param name="id" value="200"/>
				<param name="onup" value="54"/>
				<param name="ondown" value="201"/>
				<param name="onback" value="54"/>
				<param name="height" value="438"/>
				<param name="sublabel" value=""/>
				<param name="sortby" value="playcount"/>
				<param name="sortorder" value="ascending"/>
				<param name="limit" value="1"/>
				<param name="headline" value="$LOCALIZE[31012]"/>
				<param name="use_custom_onclick" value="true"/>
				<param name="onclick" value="RunScript(script.embuary.helper,action=playitem,item='$ESCINFO[ListItem.Filenameandpath]')"/>
				<param name="content" value="$VAR[View54_NextUp_Content]"/>
			</include>
			<include content="WideWidget">
				<param name="visible" value="String.StartsWith(ListItem.Path,plugin://plugin.video.embycon)"/>
				<param name="force_visible" value="Integer.IsGreater(Container(2002).NumItems,0)"/>
				<param name="id" value="201"/>
				<param name="onup" value="200"/>
				<param name="ondown" value="202"/>
				<param name="onback" value="54"/>
				<param name="height" value="438"/>
				<param name="sublabel" value=""/>
				<param name="limit" value="1"/>
				<param name="headline" value="$LOCALIZE[31012]"/>
				<param name="use_custom_onclick" value="true"/>
				<param name="onclick" value="RunScript(script.embuary.helper,action=playitem,item='$ESCINFO[ListItem.Filenameandpath]')"/>
				<param name="content" value="$VAR[View54_NextUp_Content]"/>
			</include>
			<!-- Cast -->
			<include content="CastWidget">
				<param name="visible" value="Integer.IsGreater(Container(2000).NumItems,0)"/>
				<param name="id" value="202"/>
				<param name="onup" value="201"/>
				<param name="ondown" value="noop"/>
				<param name="onback" value="54"/>
				<param name="content" value="$VAR[View_Cast_Content]"/>
			</include>
		</control>
		<!-- Hidden scrollbar -->
		<control id="96" type="scrollbar">
			<left>-1200</left>
			<width>100</width>
			<height>1</height>
			<showonepage>false</showonepage>
			<orientation>vertical</orientation>
			<visible>Control.IsVisible(54)</visible>
		</control>
	</include>
</includes>