Skip to content

Commit bbf61ab

Browse files
author
Tobias Paepke
committed
mobile spiders should be considered mobile
1 parent 503dcae commit bbf61ab

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎user_agents/parsers.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,9 @@ def is_mobile(self):
166166
# TODO: remove after https://github.com/tobie/ua-parser/issues/126 is closed
167167
if 'J2ME' in self.ua_string or 'MIDP' in self.ua_string:
168168
return True
169+
# Mobile Spiders should be identified as mobile
170+
if self.device.family == 'Spider' and 'Mobile' in self.browser.family:
171+
return True
169172
return False
170173

171174
@property

0 commit comments

Comments
 (0)