fix vari
This commit is contained in:
@@ -83,9 +83,6 @@ def run(item=None):
|
||||
else:
|
||||
item = Item(channel="channelselector", action="getmainlist", viewmode="movie")
|
||||
if not config.get_setting('show_once'):
|
||||
if not config.dev_mode():
|
||||
from platformcode import updater
|
||||
updater.calcCurrHash()
|
||||
from platformcode import xbmc_videolibrary
|
||||
xbmc_videolibrary.ask_set_content(1, config.get_setting('videolibrary_kodi_force'))
|
||||
config.set_setting('show_once', True)
|
||||
|
||||
@@ -797,7 +797,7 @@ def play_video(item, strm=False, force_direct=False, autoplay=False):
|
||||
# Reproduce
|
||||
xbmc_player.play(playlist, xlistitem)
|
||||
else:
|
||||
set_player(item, xlistitem, mediaurl, view, strm, autoplay)
|
||||
set_player(item, xlistitem, mediaurl, view, strm)
|
||||
|
||||
|
||||
def stop_video():
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
import io
|
||||
import os
|
||||
import shutil
|
||||
from lib.six import StringIO
|
||||
from lib.six import BytesIO
|
||||
|
||||
from core import filetools
|
||||
from platformcode import logger, platformtools
|
||||
@@ -259,7 +259,7 @@ def getSha(path):
|
||||
|
||||
|
||||
def getShaStr(str):
|
||||
return githash.blob_hash(StringIO(str), len(str)).hexdigest()
|
||||
return githash.blob_hash(BytesIO(str.encode('utf-8')), len(str)).hexdigest()
|
||||
|
||||
|
||||
def updateFromZip(message='Installazione in corso...'):
|
||||
|
||||
Reference in New Issue
Block a user