improve parse_useragent

This commit is contained in:
rolux 2012-10-27 21:59:40 +02:00
parent d73833f467
commit 0001859ba8

View file

@ -57,6 +57,7 @@ UA_NAMES = {
'chromeframe': 'Chrome Frame', 'chromeframe': 'Chrome Frame',
'FBForIPhone': 'WebKit', 'FBForIPhone': 'WebKit',
'Gecko': 'Mozilla', 'Gecko': 'Mozilla',
'konqueror': 'Konqueror',
'Mozilla': 'Netscape', 'Mozilla': 'Netscape',
'MSIE': 'Internet Explorer', 'MSIE': 'Internet Explorer',
'NokiaBrowser': 'Nokia Browser' 'NokiaBrowser': 'Nokia Browser'
@ -82,14 +83,15 @@ UA_REGEXPS = {
'(Camino)\/(\d+)', '(Camino)\/(\d+)',
'(Chimera)\/(\d+)', '(Chimera)\/(\d+)',
'(chromeframe)\/(\d+)', '(chromeframe)\/(\d+)',
'(Chromium)\/(\d+)', '(Epiphany)\/(\d+)', # before Chrome, Chromium and Safari
'(Chromium)\/(\d+)', # before Chrome
'(Chrome)\/(\d+)', '(Chrome)\/(\d+)',
'(Epiphany)\/(\d+)',
'(FBForIPhone)', '(FBForIPhone)',
'(Firefox)\/(\d+)', '(Firefox)\/(\d+)',
'(Galeon)\/(\d+)', '(Galeon)\/(\d+)',
'(iCab) (\d+)', '(iCab) (\d+)',
'(iCab)\/(\d+)', '(iCab)\/(\d+)',
'(konqueror)\/(\d+)',
'(Konqueror)\/(\d+)', '(Konqueror)\/(\d+)',
'(Lynx)\/(\d+)', '(Lynx)\/(\d+)',
'(Netscape)\d?\/(\d+)', '(Netscape)\d?\/(\d+)',