Alcuni fix

This commit is contained in:
Alhaziel01
2020-12-10 12:53:07 +01:00
parent 91b6cf6691
commit 5c2302eb4a
5 changed files with 9 additions and 8 deletions
+1
View File
@@ -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:
-1
View File
@@ -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
+1 -1
View File
@@ -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):
+5 -4
View File
@@ -1012,10 +1012,11 @@ 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
else: xbmcplugin.setResolvedUrl(int(sys.argv[1]), True, xbmcgui.ListItem(path=os.path.join(config.get_runtime_path(), "resources", "kod.mp4")))
xbmc.Player().stop()
# 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()
# Moved del conector "torrent" here
if item.server == "torrent":
@@ -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>