Help With Auto View

Mikey1234

Banned
May 6, 2012
1,441
0
0
UK
Now i changed WTF to have autoview and basically it doesnt work

this is the function

Code:
def setView(content, viewType):
    
    if ADDON.getSetting('auto-view') == 'true':
        xbmc.executebuiltin("Container.SetViewMode(%s)" % ADDON.getSetting(viewType) )
    else:
    	xbmcplugin.setContent(int(sys.argv[1]), 'movies')
this is the setting of each view

Code:
elif mode == "all movies menu": #all menu
        items, missing_meta = movies_all_menu()
        get_missing_meta(missing_meta, 'movies')
        [B]setView('movies', 'movies-view')[/B]
        enable_sort = XBMC_SORT
i have the settings setup
Code:
    <category label="Auto-View">
		<setting id="auto-view" type="bool" label="30600" default="false"/>
		<setting id="movies-view" type="number" label="30601" default="503" enable="!eq(-1,false)"/>
		<setting id="tvshows-view" type="number" label="30602" default="503" enable="!eq(-2,false)"/>
		<setting id="seasons-view" type="number" label="30603" default="504" enable="!eq(-3,false)"/>	
		<setting id="episodes-view" type="number" label="30604" default="504" enable="!eq(-4,false)"/>
		<setting id="default-view" type="number" label="30605" default="50" enable="!eq(-4,false)"/>/>
   	</category>
and the strings
Code:
    <string id="30600">Enable Automatic View</string>
    <string id="30601">Movies View</string>
    <string id="30602">TV Shows View</string>
    <string id="30603">Seasons View</string>
    <string id="30604">Episodes View</string>
    <string id="30605">Default View</string>
am i missing something because when the automatic views are enabled and set they dont work..............it just limits the views to the basic "list,thumbnail,biglist"

ah........................i have answered part of my question so effectively it does work because it reads the "auto-view" as enabled but doesn't actually change the view to the number put in the settings........

i'm baffled
 
Last edited:

Eldorado

Moderator
Staff member
May 7, 2012
990
0
16
The # you are sending in for the view, does it exist in the skin you are using?
 

Mikey1234

Banned
May 6, 2012
1,441
0
0
UK
sorted it.....i just set everyview view up as movie because movie has all the views......also realised because episode was set up as episode you only have a few options....plus it helps if you know the view number and not put a number in that does not exist .....

lol

thank you eldorado