Skip to content

Commit 5f2d80a

Browse files
set is_pc to false for chromecasts (selwin#122)
1 parent 88f4380 commit 5f2d80a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎user_agents/parsers.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,8 @@ def is_pc(self):
261261
return False
262262
if 'Chrome OS' in self.os.family:
263263
return True
264+
if 'Chromecast' in self.os.family:
265+
return False
264266
if 'Linux' in self.ua_string and 'X11' in self.ua_string:
265267
return True
266268
return False

0 commit comments

Comments
 (0)