Alcuni fix
This commit is contained in:
@@ -230,6 +230,7 @@ def start(itemlist, item):
|
||||
if isinstance(resolved_item[0], list): videoitem.video_urls = resolved_item
|
||||
else: videoitem = resolved_item[0]
|
||||
|
||||
play_item.autoplay = True
|
||||
# If not directly reproduce and mark as seen
|
||||
# Check if the item comes from the video library
|
||||
try:
|
||||
|
||||
@@ -1165,7 +1165,6 @@ def server(item, data='', itemlist=[], headers='', AutoPlay=True, CheckLinks=Tru
|
||||
videoitem.quality = quality
|
||||
videoitem.referer = item.url
|
||||
videoitem.action = "play"
|
||||
videoitem.infoLabels = item.infoLabels
|
||||
# videoitem.nfo = item.nfo
|
||||
# videoitem.strm_path = item.strm_path
|
||||
return videoitem
|
||||
|
||||
@@ -650,7 +650,7 @@ class SearchWindow(xbmcgui.WindowXML):
|
||||
|
||||
elif control_id in [SERVERLIST]:
|
||||
server = Item().fromurl(self.getControl(control_id).getSelectedItem().getProperty('item'))
|
||||
server.new_search=True
|
||||
server.globalsearch = True
|
||||
return run(server)
|
||||
|
||||
def Back(self):
|
||||
|
||||
@@ -1012,8 +1012,9 @@ def set_player(item, xlistitem, mediaurl, view, strm):
|
||||
item.options = {'strm':False, 'continue':False}
|
||||
# logger.debug("item:\n" + item.tostring('\n'))
|
||||
|
||||
if item.new_search: xbmc.executebuiltin("PlayMedia(" + os.path.join(config.get_runtime_path(), "resources", "kod.mp4") + ")")
|
||||
# Prevent Busy
|
||||
if not item.autoplay:
|
||||
if item.globalsearch: xbmc.executebuiltin("PlayMedia(" + os.path.join(config.get_runtime_path(), "resources", "kod.mp4") + ")")
|
||||
else: xbmcplugin.setResolvedUrl(int(sys.argv[1]), True, xbmcgui.ListItem(path=os.path.join(config.get_runtime_path(), "resources", "kod.mp4")))
|
||||
xbmc.Player().stop()
|
||||
|
||||
|
||||
@@ -123,7 +123,7 @@
|
||||
<left>0</left>
|
||||
<width>180</width>
|
||||
<height>270</height>
|
||||
<texture colordiffuse="AAFFFFFF">$INFO[ListItem.Property(thumb)]</texture>
|
||||
<texture colordiffuse="FF999999">$INFO[ListItem.Property(thumb)]</texture>
|
||||
<visible>!Control.HasFocus(102)</visible>
|
||||
<bordersize>10</bordersize>
|
||||
<aspectratio>scale</aspectratio>
|
||||
@@ -147,7 +147,7 @@
|
||||
<left>0</left>
|
||||
<width>380</width>
|
||||
<height>570</height>
|
||||
<texture colordiffuse="AAFFFFFF">$INFO[ListItem.Property(thumb)]</texture>
|
||||
<texture colordiffuse="FF999999">$INFO[ListItem.Property(thumb)]</texture>
|
||||
<visible>!Control.HasFocus(102)</visible>
|
||||
<bordersize>10</bordersize>
|
||||
<aspectratio>scale</aspectratio>
|
||||
|
||||
Reference in New Issue
Block a user