Fix Freeze e canali vuoti
This commit is contained in:
@@ -225,6 +225,7 @@ def run(item=None):
|
|||||||
from core import db
|
from core import db
|
||||||
if db['OnPlay'].get('addon', False):
|
if db['OnPlay'].get('addon', False):
|
||||||
item.autoplay = True
|
item.autoplay = True
|
||||||
|
db['OnPlay']['addon'] = False
|
||||||
platformtools.fakeVideo()
|
platformtools.fakeVideo()
|
||||||
db.close()
|
db.close()
|
||||||
|
|
||||||
@@ -300,6 +301,7 @@ def run(item=None):
|
|||||||
|
|
||||||
# For all other actions
|
# For all other actions
|
||||||
else:
|
else:
|
||||||
|
if item.channel == 'filmontv':
|
||||||
reload = False
|
reload = False
|
||||||
from core import db
|
from core import db
|
||||||
if db['OnPlay'].get('addon', False):
|
if db['OnPlay'].get('addon', False):
|
||||||
|
|||||||
@@ -1686,6 +1686,7 @@ def prevent_busy(item=None):
|
|||||||
|
|
||||||
def fakeVideo():
|
def fakeVideo():
|
||||||
xbmcplugin.setResolvedUrl(int(sys.argv[1]), True, xbmcgui.ListItem(path=os.path.join(config.get_runtime_path(), "resources", "kod.mp4")))
|
xbmcplugin.setResolvedUrl(int(sys.argv[1]), True, xbmcgui.ListItem(path=os.path.join(config.get_runtime_path(), "resources", "kod.mp4")))
|
||||||
|
sleep = 200 if xbmc.getCondVisibility("system.platform.android") else 100
|
||||||
while not is_playing():
|
while not is_playing():
|
||||||
xbmc.sleep(100)
|
xbmc.sleep(sleep)
|
||||||
xbmc.Player().stop()
|
xbmc.Player().stop()
|
||||||
Reference in New Issue
Block a user