- Aggiunto Canale Altadefinizione
- Fix Aggiungi alla Videoteca da Ricerca Globale - Miglior gestione riapertura finestra server - Fix Gestione server Bloccati
This commit is contained in:
@@ -1869,10 +1869,10 @@ def serverWindow(item, itemlist):
|
||||
self.setFocusId(100)
|
||||
# from core.support import dbg;dbg()
|
||||
|
||||
def onFocus(self, control):
|
||||
if is_playing() and db['controls'].get('reopen', False):
|
||||
self.close()
|
||||
serverWindow(self.item, self.itemlist)
|
||||
# def onFocus(self, control):
|
||||
# if is_playing() and db['controls'].get('reopen', False):
|
||||
# self.close()
|
||||
# serverWindow(self.item, self.itemlist)
|
||||
|
||||
def onAction(self, action):
|
||||
action = action.getId()
|
||||
@@ -1965,10 +1965,10 @@ def serverWindow(item, itemlist):
|
||||
self.SERVERS.addItems(items)
|
||||
self.setFocus(self.SERVERS)
|
||||
|
||||
def onFocus(self, control):
|
||||
if is_playing() and db['controls'].get('reopen', False):
|
||||
self.close()
|
||||
serverWindow(self.item, self.itemlist)
|
||||
# def onFocus(self, control):
|
||||
# if is_playing() and db['controls'].get('reopen', False):
|
||||
# self.close()
|
||||
# serverWindow(self.item, self.itemlist)
|
||||
|
||||
def onAction(self, action):
|
||||
action = action.getId()
|
||||
@@ -2010,8 +2010,13 @@ def serverWindow(item, itemlist):
|
||||
|
||||
|
||||
if itemlist:
|
||||
def monitor(itemlist):
|
||||
reopen = False
|
||||
reopen = False
|
||||
if config.get_setting('autoplay'):
|
||||
reopen = True
|
||||
from core import autoplay
|
||||
autoplay.start(itemlist, item)
|
||||
|
||||
def monitor(itemlist, reopen):
|
||||
while not xbmc.Monitor().abortRequested():
|
||||
if not is_playing():
|
||||
if reopen:
|
||||
@@ -2036,7 +2041,6 @@ def serverWindow(item, itemlist):
|
||||
reopen = False
|
||||
if not selection.server or selection.server == 'torrent': break
|
||||
|
||||
db.close()
|
||||
logger.debug('Server Window EXIT')
|
||||
import threading
|
||||
threading.Thread(target=monitor, args=[itemlist]).start()
|
||||
# import threading
|
||||
monitor(itemlist, reopen)
|
||||
# threading.Thread(target=monitor, args=[itemlist, reopen]).start()
|
||||
|
||||
@@ -85,7 +85,10 @@ def mark_auto_as_watched(item):
|
||||
if marked:
|
||||
logger.debug('CLOSE')
|
||||
item.played_time = 0
|
||||
db['controls']['reopen'] = False
|
||||
if total_time > 20:
|
||||
db['controls']['reopen'] = False
|
||||
else:
|
||||
db['controls']['reopen'] = True
|
||||
else:
|
||||
logger.debug('REOPEN')
|
||||
item.played_time = actual_time
|
||||
@@ -110,7 +113,7 @@ def mark_auto_as_watched(item):
|
||||
|
||||
def sync_trakt_addon(path_folder):
|
||||
"""
|
||||
Updates the values of episodes seen if
|
||||
Updates the values of episodes seen if
|
||||
"""
|
||||
logger.debug()
|
||||
# if the addon exists we do the search
|
||||
|
||||
Reference in New Issue
Block a user