Posts: 3,432
Joined: Sep 2010
Reputation:
57
2014-08-24, 20:43
(This post was last modified: 2014-08-24, 21:14 by Angelscry.)
Actually, when a XBMC python add-on is accessing an internet server (using urllib or urllib2) the user agent used is Python-urllib/2.7. The user agent could always been modified using urllib, but how could we get the real XBMC user-agent value from XBMC? Or, is their a way to rebuilt it?
Posts: 1,660
Joined: Jun 2011
Reputation:
119
Why bother? Send whatever User-Agent string you like. Or note the pattern and construct User-Agent based on that pattern. Kodi version can be extracted via 'System.BuildVersion' info-label.
Posts: 54
Joined: Feb 2016
Reputation:
3
Is there a Jarvis equivalent to xbmc.getUserAgent() ?
Trying to get android os details of any system.