Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 16472bd

Browse filesBrowse files
committed
Fixed detection errors when running against latest version of ua-parser
1 parent d9cc2b3 commit 16472bd
Copy full SHA for 16472bd

File tree

Expand file treeCollapse file tree

1 file changed

+6
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-2
lines changed

‎user_agents/parsers.py

Copy file name to clipboardExpand all lines: user_agents/parsers.py
+6-2Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,29 @@
1111
)
1212

1313
MOBILE_OS_FAMILIES = (
14-
'Windows Phone OS',
14+
'Windows Phone',
15+
'Windows Phone OS', # Earlier versions of ua-parser returns Windows Phone OS
1516
'Symbian OS',
1617
)
1718

1819
TABLET_DEVICE_FAMILIES = (
1920
'iPad',
20-
'Blackberry Playbook',
21+
'BlackBerry Playbook',
22+
'Blackberry Playbook', # Earlier versions of ua-parser returns "Blackberry" (caps)
2123
'Kindle',
2224
'Kindle Fire',
2325
)
2426

2527
TOUCH_CAPABLE_OS_FAMILIES = (
2628
'iOS',
2729
'Android',
30+
'Windows Phone',
2831
'Windows Phone OS',
2932
'Windows RT',
3033
)
3134

3235
TOUCH_CAPABLE_DEVICE_FAMILIES = (
36+
'BlackBerry Playbook',
3337
'Blackberry Playbook',
3438
'Kindle Fire',
3539
)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.