bozza impostazioni visualizzazioni predefinite
This commit is contained in:
@@ -29,6 +29,77 @@ def settings_menu(item):
|
||||
from platformcode import config
|
||||
config.open_settings()
|
||||
|
||||
def view_mode(item):
|
||||
logger.info(str(item))
|
||||
import xbmc
|
||||
from platformcode import config, platformtools
|
||||
skin_view_mode ={
|
||||
'skin.estuary':{
|
||||
'movie':{
|
||||
'List': 50,
|
||||
'Poster': 51,
|
||||
# 'IconWall': 52,
|
||||
'Shift': 53,
|
||||
'InfoWall': 54,
|
||||
'WideList': 55,
|
||||
'Wall': 500,
|
||||
# 'Banner': 501,
|
||||
'Fanart': 502
|
||||
},
|
||||
'tvshow':{
|
||||
'List': 50,
|
||||
'Poster': 51,
|
||||
'Shift': 53,
|
||||
'InfoWall': 54,
|
||||
'WideList': 55,
|
||||
'Wall': 500,
|
||||
'Banner': 501,
|
||||
'Fanart': 502
|
||||
},
|
||||
'season':{
|
||||
'List': 50,
|
||||
'Poster': 51,
|
||||
'Shift': 53,
|
||||
'InfoWall': 54,
|
||||
'WideList': 55,
|
||||
'Wall': 500,
|
||||
'Fanart': 502
|
||||
},
|
||||
'episode':{
|
||||
'List': 50,
|
||||
'Poster': 51,
|
||||
'Shift': 53,
|
||||
'InfoWall': 54,
|
||||
'WideList': 55,
|
||||
'Wall': 500,
|
||||
'Banner': 501,
|
||||
'Fanart': 502
|
||||
},
|
||||
'server':{
|
||||
'WideList': 55,
|
||||
'Wall': 500
|
||||
},
|
||||
'addon':{
|
||||
'WideList': 55,
|
||||
'Wall': 500
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
list_type = [config.get_localized_string(59992)]
|
||||
skin=xbmc.getSkinDir()
|
||||
skin = skin_view_mode[xbmc.getSkinDir()][item.type]
|
||||
|
||||
for key in skin:
|
||||
list_type.append(key)
|
||||
|
||||
select = platformtools.dialog_select(config.get_localized_string(60552), list_type)
|
||||
if select > 0:
|
||||
value = skin[list_type[select]]
|
||||
else:
|
||||
value = 0
|
||||
config.set_setting('view_mode_%s' % item.type, value)
|
||||
|
||||
def servers_menu(item):
|
||||
# from core.support import dbg; dbg()
|
||||
from core import servertools
|
||||
|
||||
Reference in New Issue
Block a user