KoD 1.7.6

- fix di routine ai canali/server\n- disabilitati cb01anime e tantifilm\n- aggiunta opzione mostra server nel menu contestuale della libreria\n- più opzioni per quanto riguarda l'aggiornamento della videoteca\n\n
This commit is contained in:
marco
2022-09-15 19:15:51 +02:00
parent 749b54a772
commit 164efd8af7
41 changed files with 1062 additions and 941 deletions

View File

@@ -1,5 +1,6 @@
[
"platformcode.contextmenu.search",
"platformcode.contextmenu.tvshow_options",
"platformcode.contextmenu.trailer"
"platformcode.contextmenu.trailer",
"platformcode.contextmenu.show_servers"
]

View File

@@ -0,0 +1,23 @@
import xbmc
from core.item import Item
from platformcode import config
def get_menu_items():
mediatype = xbmc.getInfoLabel('ListItem.DBTYPE')
filePath = xbmc.getInfoLabel('ListItem.FileNameAndPath')
res = []
if 'kod' in filePath and mediatype in ['movie', 'episode'] and config.get_setting('autoplay'):
res = [(config.get_localized_string(70192), execute)]
return res
def execute():
from core import filetools
from platformcode.launcher import run
filePath = xbmc.getInfoLabel('ListItem.FileNameAndPath')
item = Item().fromurl(filetools.read(filePath))
item.disableAutoplay = True
run(item)

View File

@@ -1782,11 +1782,12 @@ def prevent_busy():
def fakeVideo(sleep = False):
mediaurl = os.path.join(config.get_runtime_path(), "resources", "kod.mp4")
xbmcplugin.setResolvedUrl(int(sys.argv[1]), True, xbmcgui.ListItem(path=mediaurl))
while not is_playing():
xbmc.sleep(200)
xbmc.Player().stop()
if len(sys.argv) > 1:
mediaurl = os.path.join(config.get_runtime_path(), "resources", "kod.mp4")
xbmcplugin.setResolvedUrl(int(sys.argv[1]), True, xbmcgui.ListItem(path=mediaurl))
while not is_playing():
xbmc.sleep(200)
xbmc.Player().stop()
def channelImport(channelId):

View File

@@ -50,7 +50,7 @@ def loadCommits(page=1):
# ret -> aggiornato, necessita reload service
def check(background=False):
if not addon.getSetting('addon_update_enabled'):
if not config.get_setting('addon_update_enabled'):
return False, False
logger.info('Cerco aggiornamenti..')
commits = loadCommits()
@@ -156,7 +156,7 @@ def check(background=False):
xbmc.sleep(1000)
updated = True
if addon.getSetting("addon_update_message"):
if config.get_setting("addon_update_message"):
if background:
platformtools.dialog_notification(config.get_localized_string(20000), config.get_localized_string(80040) % commits[0]['sha'][:7], time=3000, sound=False)
try:

View File

@@ -627,7 +627,7 @@ def set_content(content_type, silent=False, custom=False):
else:
seleccion = values.index('metadata.tvshows.themoviedb.org.python')
else:
seleccion = platformtools.dialog_select(config.get_localized_string(70094), scraper)
seleccion = platformtools.dialog_select(config.get_localized_string(70094 if content_type == 'movie' else 70107), scraper)
# Configure scraper
if seleccion != -1: