fix import error and new default nextupinfo

This commit is contained in:
im85288 2015-05-08 19:54:43 +01:00
parent b321dc5c00
commit 858f811362
2 changed files with 166 additions and 231 deletions

View File

@ -17,8 +17,6 @@ from PlaybackUtils import PlaybackUtils
from DownloadUtils import DownloadUtils from DownloadUtils import DownloadUtils
from ReadEmbyDB import ReadEmbyDB from ReadEmbyDB import ReadEmbyDB
from API import API from API import API
from ItemInfo import ItemInfo
from PersonInfo import PersonInfo
##### Play items via plugin://plugin.video.emby/ ##### ##### Play items via plugin://plugin.video.emby/ #####

View File

@ -4,66 +4,84 @@
<zorder>0</zorder> <zorder>0</zorder>
<controls> <controls>
<control type="group"> <control type="group">
<control type="image"> <control type="group">
<left>0</left> <animation effect="slide" start="0" end="0,-190" time="150" condition="Window.IsVisible(NextUpInfo.xml)">Conditional</animation>
<top>-150</top> <animation effect="slide" start="0,110" end="0" time="150">Visible</animation>
<width>1280</width> <animation effect="slide" start="0,110" end="0" time="150">WindowOpen</animation>
<height>256</height>
<texture flipy="true" border="1">HomeNowPlayingBack.png</texture>
</control>
<control type="label" id="1">
<description>Clock label</description>
<left>450</left>
<top>5</top>
<width>800</width>
<height>25</height>
<align>right</align>
<aligny>center</aligny>
<font>font13</font>
<textcolor>white</textcolor>
<shadowcolor>black</shadowcolor>
<label>$INFO[System.Time]</label>
<animation effect="slide" start="0,0" end="-70,0" time="0" condition="Window.IsVisible(VideoOSD)">conditional</animation>
</control>
<control type="image">
<left>0</left>
<top>230r</top>
<width>1280</width>
<height>230</height>
<texture border="1">HomeNowPlayingBack.png</texture>
</control>
<control type="image" id="3009">
<description>cover image</description>
<left>20</left>
<top>350r</top>
<width>300</width>
<height>330</height>
</control>
<control type="image" id="3006"> <control type="image" id="3006">
<description>clearart</description> <right>0</right>
<visible>false</visible> <bottom>110</bottom>
<width>500</width>
<height>281</height>
<aspectratio align="right" aligny="bottom">keep</aspectratio>
</control> </control>
<control type="group" id="1"> <!-- buttons -->
<left>330</left> <control type="button" id="3012">
<top>185r</top> <description>Watch Now</description>
<control type="label" id="1"> <right>0</right>
<description>TV Show label</description> <bottom>40</bottom>
<left>20</left> <width>200</width>
<top>30</top> <onup>3013</onup>
<width>910</width> <ondown>3013</ondown>
<height>25</height> <font>font14</font>
<align>left</align> <label>Watch Now</label>
<font>font12</font> <focusedcolor>FFededed</focusedcolor>
<disabledcolor>B3dddddd</disabledcolor>
<selectedcolor>FFff4081</selectedcolor>
<height>68</height>
<textcolor>ff333333</textcolor>
</control>
<control type="button" id="3013">
<description>Cancel</description>
<right>0</right>
<bottom>-30</bottom>
<width>200</width>
<onup>3012</onup>
<ondown>3012</ondown>
<font>font14</font>
<label>222</label>
<focusedcolor>FFededed</focusedcolor>
<disabledcolor>B3dddddd</disabledcolor>
<selectedcolor>FFff4081</selectedcolor>
<height>68</height>
<textcolor>ff333333</textcolor>
</control>
</control>
<control type="group">
<top>300r</top>
<bottom>0</bottom>
<width>100%</width>
<animation effect="fade" start="0" end="100" delay="150" time="150">Visible</animation>
<animation effect="fade" start="0" end="100" delay="150" time="150">WindowOpen</animation>
<control type="group">
<left>80</left>
<right>80</right>
<top>20</top>
<bottom>20</bottom>
<control type="image" id="3009">
<left>-70</left>
<top>-226</top>
<width>334</width>
<height>486</height>
</control>
<control type="group">
<left>294</left>
<right>0</right>
<control type="label">
<width>100%</width>
<top>0</top>
<height>40</height>
<font>font16</font>
<textcolor>B3dddddd</textcolor>
<label>$INFO[Control.GetLabel(3002),Up Next... ,][COLOR=orange]$INFO[Control.GetLabel(3000), ,][/COLOR]</label> <label>$INFO[Control.GetLabel(3002),Up Next... ,][COLOR=orange]$INFO[Control.GetLabel(3000), ,][/COLOR]</label>
<textcolor>grey2</textcolor>
<shadowcolor>black</shadowcolor>
<visible>VideoPlayer.Content(Episodes)</visible>
</control> </control>
<control type="label" description="episode/season info" id="3002"> <control type="label" description="episode/season info" id="3002">
<width>100%</width> <width>100%</width>
<top>0</top> <top>0</top>
<left>175</left> <left>175</left>
<height>40</height> <height>40</height>
<font>font16</font>
<textcolor>B3dddddd</textcolor>
<visible>false</visible> <visible>false</visible>
</control> </control>
<control type="label" description="Title" id="3000"> <control type="label" description="Title" id="3000">
@ -71,174 +89,93 @@
<left>267</left> <left>267</left>
<top>0</top> <top>0</top>
<height>40</height> <height>40</height>
<font>font16</font>
<textcolor>orange</textcolor>
<visible>false</visible> <visible>false</visible>
</control> </control>
<control type="textbox" id="3001">
<description>text</description>
<left>30</left>
<top>62</top>
<width>550</width>
<height>98</height>
<align>left</align>
<label>-</label>
<font>font13</font>
<autoscroll time="3000" delay="4000" repeat="5000">true</autoscroll>
<visible>false</visible>
</control>
<control type="grouplist" id="1">
<left>20</left>
<top>60</top>
<width>910</width>
<height>35</height>
<itemgap>5</itemgap>
<orientation>horizontal</orientation>
<control type="label" id="3003" description="rating"> <control type="label" id="3003" description="rating">
<width>100%</width> <width>100%</width>
<top>50</top> <top>50</top>
<height>40</height> <height>40</height>
<visible>false</visible> <font>font14</font>
<textcolor>B3dddddd</textcolor>
</control>
<control type="label" id="3004" description="year/runtime">
<left>55</left>
<width>100%</width>
<top>50</top>
<height>40</height>
<font>font14</font>
<textcolor>B3dddddd</textcolor>
<scroll>false</scroll>
<visible>Control.IsVisible(3003)</visible>
</control> </control>
<control type="label" id="3004" description="year/runtime"> <control type="label" id="3004" description="year/runtime">
<width>100%</width> <width>100%</width>
<top>50</top> <top>50</top>
<height>40</height> <height>40</height>
<font>font14</font>
<textcolor>B3dddddd</textcolor>
<scroll>false</scroll> <scroll>false</scroll>
<visible>false</visible> <visible>!Control.IsVisible(3003)</visible>
</control> </control>
<control type="label" id="1"> <control type="textbox" description="Plot" id="3001">
<width min="10" max="520">auto</width> <width>85%</width>
<height>30</height> <top>105</top>
<font>font30</font> <height>68</height>
<align>left</align>
<aligny>center</aligny>
<label>$INFO[Control.GetLabel(3003)]$INFO[Control.GetLabel(3004), ,]</label>
<textcolor>grey</textcolor>
<scroll>true</scroll>
</control>
<control type="button" id="3012">
<description>Watch now button</description>
<width>200</width>
<height>40</height>
<label>Watch Now</label>
<font>font12_title</font>
<onleft>3013</onleft>
<onright>3013</onright>
</control>
<control type="button" id="3013">
<description>cancel button</description>
<width>200</width>
<height>40</height>
<label>222</label>
<font>font12_title</font>
<onleft>3012</onleft>
<onright>3012</onright>
</control>
</control>
<control type="label" id="1">
<left>0</left>
<top>120</top>
<width>910</width>
<height>25</height>
<label>$INFO[Player.TimeRemaining(ss),Press cancel to stop automatic play of next episode , seconds remaining]</label>
<align>center</align>
<aligny>center</aligny>
<font>font12</font> <font>font12</font>
<textcolor>grey</textcolor> <align>justify</align>
<scroll>true</scroll>
<visible>!Window.IsVisible(VideoOSD) + !VideoPlayer.Content(LiveTV)</visible>
<animation effect="fade" time="200">VisibleChange</animation>
</control>
</control>
<control type="group" id="1">
<left>330</left>
<top>95r</top>
<visible>!VideoPlayer.Content(LiveTV) | [VideoPlayer.Content(LiveTV) + VideoPlayer.HasEpg]</visible>
<control type="label" id="1">
<visible>!VideoPlayer.Content(LiveTV)</visible>
<left>0</left> <left>0</left>
<top>0</top> <textcolor>4Ddddddd</textcolor>
<width>100</width> </control>
<control type="label" description="Next up">
<width>400</width>
<bottom>30</bottom>
<height>40</height> <height>40</height>
<font>font13</font> <font>font12</font>
<align>left</align> <textcolor>B3dddddd</textcolor>
<aligny>center</aligny> <label>Press cancel to stop automatic play of next episode...</label>
<label>$INFO[Player.Time(hh:mm:ss)]</label>
</control> </control>
<control type="progress" id="1"> <control type="label" description="Total Time">
<description>ProgressbarCache</description> <right>-30</right>
<left>100</left>
<top>15</top>
<width>720</width>
<height>16</height>
<info>Player.ProgressCache</info>
<midtexture border="6,0,6,0">OSDProgressMidLight.png</midtexture>
</control>
<control type="progress" id="1">
<description>Progressbar</description>
<left>100</left>
<top>15</top>
<width>720</width>
<height>16</height>
<info>Player.Progress</info>
</control>
<control type="label" id="1">
<visible>!VideoPlayer.Content(LiveTV)</visible>
<left>820</left>
<top>0</top>
<width>100</width>
<height>40</height>
<font>font13</font>
<align>right</align> <align>right</align>
<aligny>center</aligny> <width>400</width>
<label>$INFO[Player.Duration(hh:mm:ss)]</label> <bottom>30</bottom>
<height>80</height>
<font>WeatherTemp</font>
<textcolor>B3dddddd</textcolor>
<label>$INFO[Player.TimeRemaining(ss)]</label>
</control> </control>
</control>
</control>
<!-- codec info -->
<control type="group" id="0">
<left>0</left>
<top>20</top>
<animation effect="fade" time="200">VisibleChange</animation>
<control type="image"> <control type="image">
<description>media info background image</description> <description>Progress Back</description>
<left>0</left> <width>100%</width>
<top>0</top> <bottom>10</bottom>
<width>1280</width> <height>8</height>
<height>160</height> <texture colordiffuse="1F000000">white.png</texture>
<texture>black-back.png</texture> `
</control>
<control type="progress" description="cache">
<description>Progress Bar</description>
<width>100%</width>
<bottom>10</bottom>
<height>8</height>
<info>Player.ProgressCache</info>
<visible>true</visible>
<texturebg colordiffuse="00ffffff">progress-bg.png</texturebg>
<lefttexture colordiffuse="FFff4081">progress-end.png</lefttexture>
<midtexture colordiffuse="FFff4081">progress-end.png</midtexture>
<righttexture colordiffuse="FFff4081">progress-end.png</righttexture>
</control>
<control type="progress" id="23">
<description>Progress Bar</description>
<width>100%</width>
<bottom>10</bottom>
<height>8</height>
<info>Player.Progress</info>
<visible>true</visible>
</control> </control>
<control type="label" id="10">
<description>row 1 label</description>
<left>50</left>
<top>10</top>
<width>1180</width>
<height>30</height>
<align>left</align>
<aligny>center</aligny>
<font>font12</font>
<label>-</label>
</control> </control>
<control type="label" id="11">
<description>row 2 label</description>
<left>50</left>
<top>55</top>
<width>1180</width>
<height>30</height>
<align>left</align>
<aligny>center</aligny>
<font>font12</font>
<label>-</label>
</control> </control>
<control type="label" id="12">
<description>row 3 label</description>
<left>50</left>
<top>100</top>
<width>1180</width>
<height>45</height>
<align>left</align>
<aligny>center</aligny>
<font>font12</font>
<label>-</label>
</control> </control>
</control> </control>
</controls> </controls>