From f4a68524b9901ed8e9ad34d19e8de2c8f4fcc6a3 Mon Sep 17 00:00:00 2001 From: Matt McFarland <783024+vanetix@users.noreply.github.com> Date: Tue, 8 Oct 2024 15:58:47 -0600 Subject: [PATCH] Add new zeit online mobile app --- Tests/Parser/Client/fixtures/mobile_app.yml | 12 ++++++++ Tests/fixtures/mobile_apps.yml | 32 +++++++++++++++++++++ regexes/client/mobile_apps.yml | 5 ++++ 3 files changed, 49 insertions(+) diff --git a/Tests/Parser/Client/fixtures/mobile_app.yml b/Tests/Parser/Client/fixtures/mobile_app.yml index c486ba56e2..b083b19e63 100644 --- a/Tests/Parser/Client/fixtures/mobile_app.yml +++ b/Tests/Parser/Client/fixtures/mobile_app.yml @@ -2147,3 +2147,15 @@ type: mobile app name: Mojeek version: "" +- + user_agent: Mozilla/5.0 (iPhone; CPU iPhone OS 17_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 ZONApp/iOS/2.5.6;build:3000000110 + client: + type: mobile app + name: ZEIT ONLINE + version: 2.5.6 +- + user_agent: Mozilla/5.0 (Linux; Android 14; XQ-CC54 Build/65.2.A.2.179; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/128.0.6613.146 Mobile Safari/537.36 ZONApp/Android/2.2.7 + client: + type: mobile app + name: ZEIT ONLINE + version: 2.2.7 diff --git a/Tests/fixtures/mobile_apps.yml b/Tests/fixtures/mobile_apps.yml index bf0d5c8097..c565d47ce5 100644 --- a/Tests/fixtures/mobile_apps.yml +++ b/Tests/fixtures/mobile_apps.yml @@ -1949,3 +1949,35 @@ model: iPhone os_family: iOS browser_family: Unknown +- + user_agent: Mozilla/5.0 (iPhone; CPU iPhone OS 17_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 ZONApp/iOS/2.5.6;build:3000000110 + os: + name: iOS + version: "17.7" + platform: "" + client: + type: mobile app + name: ZEIT ONLINE + version: 2.5.6 + device: + type: smartphone + brand: Apple + model: iPhone + os_family: iOS + browser_family: Unknown +- + user_agent: Mozilla/5.0 (Linux; Android 14; XQ-CC54 Build/65.2.A.2.179; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/128.0.6613.146 Mobile Safari/537.36 ZONApp/Android/2.2.7 + os: + name: Android + version: "14" + platform: "" + client: + type: mobile app + name: ZEIT ONLINE + version: 2.2.7 + device: + type: smartphone + brand: Sony + model: Xperia 10 IV + os_family: Android + browser_family: Unknown diff --git a/regexes/client/mobile_apps.yml b/regexes/client/mobile_apps.yml index d286507393..10904f81ce 100644 --- a/regexes/client/mobile_apps.yml +++ b/regexes/client/mobile_apps.yml @@ -2559,3 +2559,8 @@ - regex: '(?!AlohaBrowser)([^/;]*)/(\d+\.[\d.]+) \((?:iPhone|iPad); (?:iOS|iPadOS) [0-9\.]+; Scale/[0-9\.]+\)' name: '$1' version: '$2' + +# ZEIT-Online app https://www.zeit.de/administratives/zeit-online-app-ios-android +- regex: 'ZONApp/(?:iOS|Android)/([\d\.]+)' + name: 'ZEIT ONLINE' + version: '$1'