E.g. from the bbc iplayer plugin:
Code:
. environment = os.environ.get( "OS", "xbox" )
try:
timeout = int(__addon__.getSetting('socket_timeout'))
except:
timeout = 5
if environment in ['Linux', 'xbox'] and timeout > 0:
setdefaulttimeout(timeout)Is this still necessary? Is there a best practice documented for this? E.g. the bbc iplayer seems to exclude all platforms except xbox and those that are linux-based, so what about iOS etc.?

Search
Help