uadetector icon indicating copy to clipboard operation
uadetector copied to clipboard

Support for chromecast user agents

Open amalakar opened this issue 10 years ago • 3 comments

Hi,

Currently uadetector cannot identify chromecast user agents correctly. According to https://code.google.com/p/google-cast-sdk/issues/detail?id=157 a chromecast device can be identified using the presence of CrKey in it. Please add support for chromecast in uadetector.

Example:


scala> val ua = parser.parse("Mozilla/5.0 (CrKey armv7l 1.4.15250) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.0 Safari/537.36")
ua: net.sf.uadetector.ReadableUserAgent = UserAgent [deviceCategory=DeviceCategory 
[category=PERSONAL_COMPUTER, icon=desktop.png, infoUrl=/list-of-ua/device-detail?device=Personal computer, 
name=Personal computer], family=CHROME, icon=chrome.png, name=Chrome, 
operatingSystem=OperatingSystem [family=UNKNOWN, familyName=unknown, icon=unknown.png, 
name=unknown, producer=, producerUrl=, url=, versionNumber=VersionNumber [groups=[, , ], 
extension=]], producer=Google Inc., producerUrl=http://www.google.com/, type=BROWSER, 
typeName=Browser, url=http://www.google.com/chrome, 
versionNumber=VersionNumber [groups=[31, 0, 1650, 0], extension=]]

And thanks for the wonderful library.

amalakar avatar Oct 24 '14 19:10 amalakar

Thank you for reporting. At the moment our database does not support Cromecast. I will hand-over to @mallat with the request to add this.

@mallat what do you think?

arouel avatar Oct 26 '14 20:10 arouel

(Friendly ping) any update on chromecast support?

amalakar avatar Jan 16 '15 17:01 amalakar

@amalakar since the UAS data are now maintained by http://udger.com you should look into their database and request some support. Alternatively you could provide a Pull Request which improves our free database.

arouel avatar Jan 20 '15 20:01 arouel