How can I change Zoom Amount and Pixel Ratio in python script Add-on
#1
Question 
I have some stream urls that has incorrect zoom amount, pixel ratio. Every time I have to change this setting manually in video settings.
Image

I need those to be handled in my add-on coding.
I need to change it to Zoom amount = 1.29 and pixel ratio = 0.65
#xbmc.playlist(xbmc.playlist_video).add(url)
#listitem = xbmcgui.ListItem('Ironman')
#listitem.setInfo('video', {'Title': 'Ironman', 'Genre': 'Science Fiction'})
#xbmc.Player( xbmc.PLAYER_CORE_MPLAYER ).play(url, listitem)

how can I change this code to reflect my needs.

thank you.
Reply
#2
Not sure if there is a json control for it:
http://kodi.wiki/view/JSON-RPC_API/v6

if there isn't you would have to edit the guisettings.xml through python, try minidom to parse the xml...
BTW anything that edits the guisettings won't be allowed into the official repo.
Image Lunatixz - Kodi / Beta repository
Image PseudoTV - Forum | Website | Youtube | Help?
Reply
#3
How can I change guisettings through Python? Can you explain me bit with sample please?
Thank you
Reply

Logout Mark Read Team Forum Stats Members Help
How can I change Zoom Amount and Pixel Ratio in python script Add-on0