Fix riapertura finestra server in casodi errore
This commit is contained in:
@@ -432,6 +432,9 @@ def limit_itemlist(itemlist):
|
||||
|
||||
|
||||
def findvideos(item):
|
||||
from core import db
|
||||
db['controls']['reopen'] = False
|
||||
db.close()
|
||||
logger.debug('Executing channel', item.channel, 'method', item.action)
|
||||
channel = platformtools.channelImport(item.channel)
|
||||
if not channel:
|
||||
|
||||
@@ -1363,7 +1363,6 @@ def get_video_seleccionado(item, seleccion, video_urls, autoplay=False):
|
||||
def set_player(item, xlistitem, mediaurl, view, strm):
|
||||
logger.debug()
|
||||
item.options = {'strm':False}
|
||||
# logger.debug("item:\n" + item.tostring('\n'))
|
||||
|
||||
# Moved del conector "torrent" here
|
||||
if item.server == "torrent":
|
||||
@@ -1864,13 +1863,8 @@ def serverWindow(item, itemlist):
|
||||
reopen = False
|
||||
from core import db
|
||||
while not xbmc.Monitor().abortRequested():
|
||||
played = True
|
||||
if config.get_setting('next_ep') == 3:
|
||||
# xbmc.sleep(500)
|
||||
if is_playing():
|
||||
return
|
||||
if not is_playing():
|
||||
if config.get_setting('autoplay') or reopen:
|
||||
if reopen:
|
||||
xbmc.sleep(200)
|
||||
if not db['controls'].get('reopen', False):
|
||||
return
|
||||
|
||||
@@ -82,12 +82,14 @@ def mark_auto_as_watched(item):
|
||||
|
||||
# if item.options['continue']:
|
||||
from core import db
|
||||
if actual_time < mark_time and mark_time:
|
||||
item.played_time = actual_time
|
||||
db['controls']['reopen'] = True
|
||||
else:
|
||||
if marked:
|
||||
logger.debug('CLOSE')
|
||||
item.played_time = 0
|
||||
db['controls']['reopen'] = False
|
||||
else:
|
||||
logger.debug('REOPEN')
|
||||
item.played_time = actual_time
|
||||
db['controls']['reopen'] = True
|
||||
db.close()
|
||||
platformtools.set_played_time(item)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user