diff --git a/src/AgentCategory/Browser/SafariChrome.php b/src/AgentCategory/Browser/SafariChrome.php index 461276e..8edea75 100644 --- a/src/AgentCategory/Browser/SafariChrome.php +++ b/src/AgentCategory/Browser/SafariChrome.php @@ -83,6 +83,14 @@ public static function challenge($ua, &$result) return true; } + if (preg_match('@GSA/([.0-9]+)@', $ua, $matches)) { + $version = $matches[1]; + static::updateMap($result, DataSet::get('GSA')); + static::updateVersion($result, $version); + + return true;; + } + if (preg_match('/Version\/([.0-9]+)/uD', $ua, $matches)) { $version = $matches[1]; } diff --git a/src/AgentCategory/Browser/SamsungBrowser.php b/src/AgentCategory/Browser/SamsungBrowser.php new file mode 100644 index 0000000..8036343 --- /dev/null +++ b/src/AgentCategory/Browser/SamsungBrowser.php @@ -0,0 +1,27 @@ + 'browser', 'vendor' => 'Fenrir Inc.', ), + 'GSA' => array( + 'label' => 'GSA', + 'name' => 'Google Search App', + 'type' => 'browser', + 'vendor' => 'Google', + ), 'Webview' => array( 'label' => 'Webview', 'name' => 'Webview', @@ -112,6 +118,12 @@ class DataSet 'type' => 'browser', 'vendor' => 'Yandex', ), + 'SamsungBrowser' => array( + 'label' => 'SamsungBrowser', + 'name' => 'SamsungBrowser', + 'type' => 'browser', + 'vendor' => 'Samsung', + ), 'Win' => array( 'label' => 'Win', 'name' => 'Windows UNKNOWN Ver', @@ -634,6 +646,18 @@ class DataSet 'type' => 'full', 'category' => 'crawler', ), + 'AdsBotGoogleMobile' => array( + 'label' => 'AdsBotGoogleMobile', + 'name' => 'AdsBot-Google-Mobile', + 'type' => 'full', + 'category' => 'crawler', + ), + 'AdsBotGoogle' => array( + 'label' => 'AdsBotGoogle', + 'name' => 'AdsBot-Google', + 'type' => 'full', + 'category' => 'crawler', + ) ); public static function get($label) diff --git a/woothee b/woothee index 1d21d7c..7ea09a7 160000 --- a/woothee +++ b/woothee @@ -1 +1 @@ -Subproject commit 1d21d7cbfd57b568e964cdd2ef98f9e046512628 +Subproject commit 7ea09a7bd37572119174832881e0c2506cb41791