2013-06-29, 21:51
I was wondering if it is possible to get the value of the XBMC User-Agent from within an Add-On? All none-add-on requests how:
but requests from a Python add-on using urllib2 does not have this value set. Now it's not that hard to actually set a user-agent but I would really like to use the original value from XBMC (with build, platform etc). Is that possible?
Code:
User-Agent: XBMC/13.0-ALPHA3 Git:20130430-e8fe5cf (Windows NT 6.1;WOW64;Win64;x64; http://www.xbmc.org)
but requests from a Python add-on using urllib2 does not have this value set. Now it's not that hard to actually set a user-agent but I would really like to use the original value from XBMC (with build, platform etc). Is that possible?