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:
23
platformcode/contextmenu/show_servers.py
Normal file
23
platformcode/contextmenu/show_servers.py
Normal 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)
|
||||
Reference in New Issue
Block a user