Piccoli fix a nextep
This commit is contained in:
@@ -434,6 +434,7 @@ def play_from_library(item):
|
||||
else:
|
||||
# Pop-up window
|
||||
from specials import videolibrary, autoplay
|
||||
# from core.support import dbg;dbg()
|
||||
p_dialog = platformtools.dialog_progress_bg(config.get_localized_string(20000), config.get_localized_string(60683))
|
||||
p_dialog.update(0, '')
|
||||
item.play_from = 'window'
|
||||
@@ -442,7 +443,7 @@ def play_from_library(item):
|
||||
while platformtools.is_playing(): # Conventional window
|
||||
sleep(1)
|
||||
play_time = platformtools.resume_playback(item, True)
|
||||
if not play_time:
|
||||
if not play_time and config.get_setting('autoplay'):
|
||||
return
|
||||
|
||||
# The number of links to show is limited
|
||||
|
||||
@@ -4,12 +4,11 @@
|
||||
<onload>Dialog.Close(fullscreeninfo,true)</onload>
|
||||
<onload>Dialog.Close(videoosd,true)</onload>
|
||||
<controls>
|
||||
<control type="grouplist" id="20">
|
||||
<orientation>horizontal</orientation>
|
||||
<control type="group">
|
||||
<top>15</top>
|
||||
<right>0</right>
|
||||
<width>140</width>
|
||||
<height>40</height>
|
||||
<itemgap>0</itemgap>
|
||||
<align>right</align>
|
||||
<animation type="WindowOpen" reversible="false">
|
||||
<effect type="fade" start="0" end="100" time="400" />
|
||||
<effect type="slide" start="115,0" end="0,0" time="400" />
|
||||
@@ -18,43 +17,52 @@
|
||||
<effect type="fade" start="100" end="0" time="300" />
|
||||
<effect type="slide" start="0,0" end="115,0" time="300" />
|
||||
</animation>
|
||||
<control type="button" id="3012">
|
||||
<label>[B]$INFO[Player.TimeRemaining(secs),,][/B]</label>
|
||||
<height>40</height>
|
||||
<width>80</width>
|
||||
<font>font30_title</font>
|
||||
<textoffsetx>10</textoffsetx>
|
||||
<textcolor>80FFFFFF</textcolor>
|
||||
<focusedcolor>FFFFFFFF</focusedcolor>
|
||||
<selectedcolor>80FFFFFF</selectedcolor>
|
||||
<shadowcolor>22000000</shadowcolor>
|
||||
<aligny>center</aligny>
|
||||
<align>left</align>
|
||||
<texturefocus border="0" colordiffuse="FFFFFFFF">NextDialog/play.png</texturefocus>
|
||||
<texturenofocus border="0" colordiffuse="80FFFFFF">NextDialog/play.png</texturenofocus>
|
||||
<pulseonselect>no</pulseonselect>
|
||||
</control>
|
||||
<control type="button" id="3013">
|
||||
<label></label>
|
||||
<height>40</height>
|
||||
<width>40</width>
|
||||
<font>font30_title</font>
|
||||
<textoffsetx>30</textoffsetx>
|
||||
<textcolor>80FFFFFF</textcolor>
|
||||
<focusedcolor>FFFFFFFF</focusedcolor>
|
||||
<selectedcolor>80FFFFFF</selectedcolor>
|
||||
<shadowcolor>22000000</shadowcolor>
|
||||
<aligny>center</aligny>
|
||||
<align>center</align>
|
||||
<texturefocus border="10" colordiffuse="FFFFFFFF">NextDialog/close.png</texturefocus>
|
||||
<texturenofocus border="10" colordiffuse="80FFFFFF">NextDialog/close.png</texturenofocus>
|
||||
<pulseonselect>no</pulseonselect>
|
||||
</control>
|
||||
<control type="image">
|
||||
<control type="image">
|
||||
<top>0</top>
|
||||
<width>20</width>
|
||||
<right>0</right>
|
||||
<width>100%</width>
|
||||
<height>100%</height>
|
||||
<texture colordiffuse="80232323">white.png</texture>
|
||||
</control>
|
||||
<control type="grouplist" id="20">
|
||||
<orientation>horizontal</orientation>
|
||||
<top>0</top>
|
||||
<right>20</right>
|
||||
<height>40</height>
|
||||
<texture>NextDialog/background.png</texture>
|
||||
<itemgap>0</itemgap>
|
||||
<align>right</align>
|
||||
<control type="button" id="3012">
|
||||
<label>[B]$INFO[Player.TimeRemaining(secs),,][/B]</label>
|
||||
<height>40</height>
|
||||
<width>80</width>
|
||||
<font>font30_title</font>
|
||||
<textoffsetx>10</textoffsetx>
|
||||
<textcolor>80FFFFFF</textcolor>
|
||||
<focusedcolor>FFFFFFFF</focusedcolor>
|
||||
<selectedcolor>80FFFFFF</selectedcolor>
|
||||
<shadowcolor>22000000</shadowcolor>
|
||||
<aligny>center</aligny>
|
||||
<align>left</align>
|
||||
<texturefocus border="0" colordiffuse="FFFFFFFF">NextDialog/play.png</texturefocus>
|
||||
<texturenofocus border="0" colordiffuse="80FFFFFF">NextDialog/play.png</texturenofocus>
|
||||
<pulseonselect>no</pulseonselect>
|
||||
</control>
|
||||
<control type="button" id="3013">
|
||||
<label></label>
|
||||
<height>40</height>
|
||||
<width>40</width>
|
||||
<font>font30_title</font>
|
||||
<textoffsetx>30</textoffsetx>
|
||||
<textcolor>80FFFFFF</textcolor>
|
||||
<focusedcolor>FFFFFFFF</focusedcolor>
|
||||
<selectedcolor>80FFFFFF</selectedcolor>
|
||||
<shadowcolor>22000000</shadowcolor>
|
||||
<aligny>center</aligny>
|
||||
<align>center</align>
|
||||
<texturefocus border="10" colordiffuse="FFFFFFFF">NextDialog/close.png</texturefocus>
|
||||
<texturenofocus border="10" colordiffuse="80FFFFFF">NextDialog/close.png</texturenofocus>
|
||||
<pulseonselect>no</pulseonselect>
|
||||
</control>
|
||||
</control>
|
||||
</control>
|
||||
</controls>
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 2.0 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
@@ -182,8 +182,9 @@ def start(itemlist, item):
|
||||
autoplay_list.sort(key=lambda orden: (orden['indice_quality'], orden['indice_server']))
|
||||
|
||||
# Plan b is prepared, in case it is active the non-favorite elements are added at the end
|
||||
try: plan_b = settings_node['plan_b']
|
||||
except: plan_b = True
|
||||
# try: plan_b = settings_node['plan_b']
|
||||
# except:
|
||||
plan_b = True
|
||||
text_b = ''
|
||||
if plan_b: autoplay_list.extend(autoplay_b)
|
||||
# If there are elements in the autoplay list, an attempt is made to reproduce each element, until one is found or all fail.
|
||||
|
||||
Reference in New Issue
Block a user