Improve device detection: identify Large Screen as smarttv

This commit is contained in:
Faisal Salman 2025-05-10 19:12:26 +07:00
parent 944c1fb260
commit 14a51039aa
2 changed files with 19 additions and 1 deletions

View File

@ -803,7 +803,7 @@
// SmartTV from Unidentified Vendors // SmartTV from Unidentified Vendors
/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i /droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i
], [MODEL, [TYPE, SMARTTV]], [ ], [MODEL, [TYPE, SMARTTV]], [
/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i /\b(android tv|smart[- ]?tv|opera tv|tv; rv:|large screen[\w ]+safari)\b/i
], [[TYPE, SMARTTV]], [ ], [[TYPE, SMARTTV]], [
/////////////////// ///////////////////

View File

@ -281,6 +281,24 @@
"type": "smarttv" "type": "smarttv"
} }
}, },
{
"desc": "Unknown TV",
"ua": "Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.127 Large Screen Safari/533.4 GoogleTV/ 162671",
"expect": {
"vendor": "undefined",
"model": "undefined",
"type": "smarttv"
}
},
{
"desc": "Unknown TV",
"ua": "Mozilla/5.0 (Web0S; Linux/SmartTV) AppleWebKit/537.41 (KHTML, like Gecko) Large Screen WebAppManager Safari/537.41",
"expect": {
"vendor": "undefined",
"model": "undefined",
"type": "smarttv"
}
},
{ {
"desc": "PDA with Windows CE", "desc": "PDA with Windows CE",
"ua": "Mozilla/4.0 (PDA; Windows CE/1.0.1) NetFront/3.0", "ua": "Mozilla/4.0 (PDA; Windows CE/1.0.1) NetFront/3.0",