Skip to content

Commit

Permalink
Detect mobile apps: Audible, Overcast (#7335)
Browse files Browse the repository at this point in the history
* feat(client) detect mobile app: Overcast
feat(client) detect mobile app: Audible
feat(bot) detect bot: Overcast Podcast Sync
feat(os) improved detect os: watchOS

* feat(tests) added tests: Overcast bot and mobile apps: Overcast, Audible

* fix: YAML Lint

* fix: detect watchOS for `Apple Watch` prefix
  • Loading branch information
sanchezzzhak committed Jan 19, 2023
1 parent 3acbaf8 commit 21f9861
Show file tree
Hide file tree
Showing 6 changed files with 62 additions and 0 deletions.
30 changes: 30 additions & 0 deletions Tests/Parser/Client/fixtures/mobile_app.yml
Expand Up @@ -1469,3 +1469,33 @@
type: mobile app
name: RadioApp
version:
-
user_agent: com.audible.playersdk.player/3.13.0 (Linux;Android 11) ExoPlayerLib/2.12.1
client:
type: mobile app
name: Audible
version: 3.13.0
-
user_agent: Audible, Android, 3.42.0, samsung, SM-S908E, b0qxxx, 13, 1.0, WIFI
client:
type: mobile app
name: Audible
version: 3.42.0
-
user_agent: Audible/659 CFNetwork/1220.1 Darwin/20.3.0
client:
type: mobile app
name: Audible
version: ""
-
user_agent: Overcast/3.0 (+http://overcast.fm/; iOS podcast app)
client:
type: mobile app
name: Overcast
version: "3.0"
-
user_agent: Overcast (+http://overcast.fm/; Apple Watch podcast app)
client:
type: mobile app
name: Overcast
version: ""
8 changes: 8 additions & 0 deletions Tests/Parser/fixtures/oss.yml
Expand Up @@ -3694,3 +3694,11 @@
version: 7.1.2
platform:
family: Android
-
user_agent: Overcast (+http://overcast.fm/; Apple Watch podcast app)
os:
name: watchOS
short_name: WAS
version:
platform:
family: iOS
6 changes: 6 additions & 0 deletions Tests/fixtures/bots.yml
Expand Up @@ -5461,3 +5461,9 @@
producer:
name: Xovi GmbH
url: http://www.xovi.de
-
user_agent: Overcast/1.0 Podcast Sync (123 subscribers; feed-id=456789; +http://overcast.fm/)
bot:
name: Overcast Podcast Sync
category: Service Agent
url: https://overcast.fm/podcasterinfo
5 changes: 5 additions & 0 deletions regexes/bots.yml
Expand Up @@ -3225,6 +3225,11 @@
name: 'Xovi GmbH'
url: 'http://www.xovi.de'

- regex: 'Overcast/1\.0 Podcast Sync'
name: 'Overcast Podcast Sync'
category: 'Service Agent'
url: 'https://overcast.fm/podcasterinfo'

# Generic detections
- regex: '[a-z0-9\-_]*((?<!cu|power[ _]|m[ _])bot(?![ _]TAB|[ _]?5[0-9]|[ _]Senior|[ _]Junior)|crawler|crawl|checker|archiver|transcoder|spider)([^a-z]|$)'
name: 'Generic Bot'
10 changes: 10 additions & 0 deletions regexes/client/mobile_apps.yml
Expand Up @@ -1392,3 +1392,13 @@
- regex: 'RadioAppFree/'
name: 'RadioApp'
version: ''

# Audible
- regex: '^(?:Audible, Android, |com.audible.playersdk.player/|Audible/)(\d+\.[.\d]+)?'
name: 'Audible'
version: '$1'

# Overcast (http://overcast.fm/)
- regex: 'Overcast/?(\d+\.[.\d]+)? \(\+http://overcast.fm/; (?:Apple Watch|iOS) podcast'
name: 'Overcast'
version: '$1'
3 changes: 3 additions & 0 deletions regexes/oss.yml
Expand Up @@ -726,6 +726,9 @@
- regex: '(?:Watch1,[12]/|Watch OS,|watchOS[ /])(\d+[\.\d]*)'
name: 'watchOS'
version: '$1'
- regex: 'Apple Watch(?!;)'
name: 'watchOS'
version: ''

##########
# iPadOS (https://www.apple.com/ipados/)
Expand Down

0 comments on commit 21f9861

Please sign in to comment.