Skip to content

Commit

Permalink
Adds detection for JPay brand and devices
Browse files Browse the repository at this point in the history
  • Loading branch information
liviuconcioiu committed Jul 13, 2022
1 parent 4aaef6b commit 8c1b9fb
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
1 change: 1 addition & 0 deletions Parser/Device/AbstractDeviceParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,7 @@ abstract class AbstractDeviceParser extends AbstractParser
'UJ' => 'Juniper Systems',
'J5' => 'Just5',
'7J' => 'Jumper',
'JPA' => 'JPay',
'JV' => 'JVC',
'JXD' => 'JXD',
'JS' => 'Jesy',
Expand Down
36 changes: 36 additions & 0 deletions Tests/fixtures/smartphone-7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9171,3 +9171,39 @@
model: Pro
os_family: Android
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Linux; U; Android 8.1.0; JP5 Inmate Media Device Build/3.25.1) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/57.0.2987.108 UCBrowser/13.0.0.1288 Mobile Safari/537.36
os:
name: Android
version: 8.1.0
platform: ""
client:
type: browser
name: UC Browser
version: 13.0.0.1288
engine: WebKit
engine_version: "537.36"
device:
type: smartphone
brand: JPay
model: JP5
os_family: Android
browser_family: Unknown
-
user_agent: Mozilla/5.0 (Linux; U; Android 4.2.2; JP5s Inmate Media Device Build/JP5JDQ47) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/57.0.2987.108 UCBrowser/12.10.0.1163 UCTurbo/1.9.3.900 Mobile Safari/537.36
os:
name: Android
version: 4.2.2
platform: ""
client:
type: browser
name: UC Browser Turbo
version: 1.9.3.900
engine: WebKit
engine_version: "537.36"
device:
type: smartphone
brand: JPay
model: JP5s
os_family: Android
browser_family: Unknown
6 changes: 6 additions & 0 deletions regexes/device/mobiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7308,6 +7308,12 @@ Jumper:
device: 'tablet'
model: 'EZpad $1'

# JPay (https://www.jpay.com/)
JPay:
regex: '(JP5s?) Inmate Media Device(?:[);/ ]|$)'
device: 'smartphone'
model: '$1'

# Ezze
Ezze:
regex: 'EZZE-|EZ(?!Browser)[a-z0-9]+'
Expand Down

0 comments on commit 8c1b9fb

Please sign in to comment.