Fix Autoplay e Altadefinizione
This commit is contained in:
@@ -88,7 +88,7 @@ def episodios(item):
|
|||||||
|
|
||||||
def check(item):
|
def check(item):
|
||||||
item.data = httptools.downloadpage(item.url).data
|
item.data = httptools.downloadpage(item.url).data
|
||||||
if 'Stagione' in item.data:
|
if 'stagione' in item.data.lower():
|
||||||
item.contentType = 'tvshow'
|
item.contentType = 'tvshow'
|
||||||
return episodios(item)
|
return episodios(item)
|
||||||
else:
|
else:
|
||||||
|
|||||||
@@ -2013,18 +2013,17 @@ def serverWindow(item, itemlist):
|
|||||||
|
|
||||||
|
|
||||||
if itemlist:
|
if itemlist:
|
||||||
|
db['player']['itemlist'] = itemlist
|
||||||
|
db.close()
|
||||||
|
|
||||||
if config.get_setting('autoplay') and not item.disableAutoplay:
|
if config.get_setting('autoplay') and not item.disableAutoplay:
|
||||||
from core import autoplay
|
from core import autoplay
|
||||||
autoplay.start(itemlist, item)
|
autoplay.start(itemlist, item)
|
||||||
|
|
||||||
if config.get_setting('window_type') == 0:
|
|
||||||
selection = ServerSkinWindow("DialogSelect.xml", config.get_runtime_path()).start(item, itemlist)
|
|
||||||
else:
|
else:
|
||||||
selection = ServerWindow('Servers.xml', config.get_runtime_path()).start(item, itemlist)
|
if config.get_setting('window_type') == 0:
|
||||||
if selection != -1:
|
selection = ServerSkinWindow("DialogSelect.xml", config.get_runtime_path()).start(item, itemlist)
|
||||||
from core import db
|
else:
|
||||||
from platformcode.launcher import run
|
selection = ServerWindow('Servers.xml', config.get_runtime_path()).start(item, itemlist)
|
||||||
db['player']['itemlist'] = itemlist
|
if selection != -1:
|
||||||
db.close()
|
from platformcode.launcher import run
|
||||||
run(selection)
|
run(selection)
|
||||||
|
|||||||
@@ -84,6 +84,7 @@ def mark_auto_as_watched(item):
|
|||||||
|
|
||||||
# if item.options['continue']:
|
# if item.options['continue']:
|
||||||
if (marked and total_time < 20) or not marked:
|
if (marked and total_time < 20) or not marked:
|
||||||
|
item.disableAutoplay=True
|
||||||
platformtools.serverWindow(item, itemlist)
|
platformtools.serverWindow(item, itemlist)
|
||||||
|
|
||||||
platformtools.set_played_time(item)
|
platformtools.set_played_time(item)
|
||||||
@@ -105,6 +106,7 @@ def mark_auto_as_watched(item):
|
|||||||
from core import db
|
from core import db
|
||||||
if config.get_setting("mark_as_watched", "videolibrary"):
|
if config.get_setting("mark_as_watched", "videolibrary"):
|
||||||
itemlist = db['player'].get('itemlist', [])
|
itemlist = db['player'].get('itemlist', [])
|
||||||
|
db['player']['itemlist'] = []
|
||||||
db.close()
|
db.close()
|
||||||
threading.Thread(target=mark_as_watched_subThread, args=[item]).start()
|
threading.Thread(target=mark_as_watched_subThread, args=[item]).start()
|
||||||
logger.debug('EXIT MONITOR')
|
logger.debug('EXIT MONITOR')
|
||||||
|
|||||||
Reference in New Issue
Block a user