Skip to content

Commit

Permalink
Adds detection for Zealot brand and device
Browse files Browse the repository at this point in the history
  • Loading branch information
liviuconcioiu committed Jul 13, 2022
1 parent 20cb37a commit 5ac9a9c
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 1 deletion.
1 change: 1 addition & 0 deletions Parser/Device/AbstractDeviceParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -1399,6 +1399,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'YX' => 'Yxtel',
'0Z' => 'Zatec',
'2Z' => 'Zaith',
'ZEA' => 'Zealot',
'PZ' => 'Zebra',
'ZE' => 'Zeemi',
'WZ' => 'Zeeker',
Expand Down
18 changes: 18 additions & 0 deletions Tests/fixtures/tv-1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6751,3 +6751,21 @@
model: Mini
os_family: Android
browser_family: Chrome
-
user_agent: Mozilla/5.0 (Linux; Android 10; ZEALOT) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.88 Safari/537.36
os:
name: Android
version: "10"
platform: ""
client:
type: browser
name: Chrome
version: 99.0.4844.88
engine: Blink
engine_version: 99.0.4844.88
device:
type: tv
brand: Zealot
model: TV Box
os_family: Android
browser_family: Chrome
2 changes: 1 addition & 1 deletion regexes/bots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1958,7 +1958,7 @@
- regex: 'RSSRadio \(Push Notification Scanner;support@dorada\.co\.uk\)'
name: 'RSSRadio Bot'

- regex: '(A6-Indexer|nuhk|TsolCrawler|Yammybot|Openbot|Gulper Web Bot|grub-client|Download Demon|SearchExpress|Microsoft URL Control|borg|altavista|dataminr.com|tweetedtimes.com|TrendsmapResolver|teoma|blitzbot|oegp|furlbot|http%20client|polybot|htdig|mogimogi|larbin|scrubby|searchsight|seekbot|semanticdiscovery|snappy|vortex(?!(?: Build|Plus))|zeal|fast-webcrawler|converacrawler|dataparksearch|findlinks|BrowserMob|HttpMonitor|ThumbShotsBot|URL2PNG|ZooShot|GomezA|Google SketchUp|Read%20Later|RackspaceBot|robots|SeopultContentAnalyzer|7Siters|centuryb.o.t9|InterNaetBoten|EasyBib AutoCite|Bidtellect|tomnomnom/meg|My User Agent|cortex|CF-UC User Agent|Re-re Studio|adreview|AHC/|NameOfAgent|Request-Promise|ALittle Client|Hello, world|wp_is_mobile|0xAbyssalDoesntExist|Anarchy99)'
- regex: '(A6-Indexer|nuhk|TsolCrawler|Yammybot|Openbot|Gulper Web Bot|grub-client|Download Demon|SearchExpress|Microsoft URL Control|borg|altavista|dataminr.com|tweetedtimes.com|TrendsmapResolver|teoma|blitzbot|oegp|furlbot|http%20client|polybot|htdig|mogimogi|larbin|scrubby|searchsight|seekbot|semanticdiscovery|snappy|vortex(?!(?: Build|Plus))|zeal(?!ot)|fast-webcrawler|converacrawler|dataparksearch|findlinks|BrowserMob|HttpMonitor|ThumbShotsBot|URL2PNG|ZooShot|GomezA|Google SketchUp|Read%20Later|RackspaceBot|robots|SeopultContentAnalyzer|7Siters|centuryb.o.t9|InterNaetBoten|EasyBib AutoCite|Bidtellect|tomnomnom/meg|My User Agent|cortex|CF-UC User Agent|Re-re Studio|adreview|AHC/|NameOfAgent|Request-Promise|ALittle Client|Hello, world|wp_is_mobile|0xAbyssalDoesntExist|Anarchy99)'
name: 'Generic Bot'

- regex: '^sentry'
Expand Down
6 changes: 6 additions & 0 deletions regexes/device/mobiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28865,6 +28865,12 @@ Zaith:
device: 'tablet'
model: '$1'

# Zealot
Zealot:
regex: 'Zealot(?:[);/ ]|$)'
device: 'tv'
model: 'TV Box'

# Spectralink (spectralink.com)
Spectralink:
regex: '(Versity 9640)(?:[);/ ]|$)'
Expand Down

0 comments on commit 5ac9a9c

Please sign in to comment.