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

Sign up
Appearance settings

Commit 5f2d80a

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

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎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)

AltStyle によって変換されたページ (->オリジナル) /