opawg / user-agents-v2

Comprehensive open-source collection of broadly-compatible regular expression patterns to identify and analyze podcast player user agents.
MIT License
43 stars 17 forks source link

NPR App now uses a different agent #15

Open kookster opened 6 months ago

kookster commented 6 months ago

They dropped the "One" with the new app release - here's an example of how it looks now: NPR/618 CFNetwork/1485 Darwin/23.1.0

johnspurlock commented 6 months ago

Thanks - updated (and renamed) the NPR app record: https://github.com/opawg/user-agents-v2/commit/f29095d3c186f1dcadabf479248935516049f03c

Happen to have an Android example?

kookster commented 6 months ago

I looked, but I didn't find a different Android value - I can only find "NPROneAndroid"

jamescridland commented 6 months ago

Podnews is in NPR One (and thus should be in NPR) if you want to delve deeper

danielfrohlich-npr commented 6 months ago

Here's some further details that may help.

URI Params

In the vast majority of cases the app will append "NPROne=true" to the media enclosure. This helps identify downloads when we don't have control over the user agent. This is especially true on Alexa but might be true on iOS and Andriod in some cases too. You can choose to ignore this but it can help.

User agents:

iOS: NPR/### CFNetwork/####.#.# Darwin/##.#.#

Android: two cases here

kookster commented 6 months ago

Hey Daniel, there is a standard for appending an identifier to the url parameters, which is to use a ?_from=NPROne query param. https://github.com/opawg/podcast-rss-useragents?tab=readme-ov-file#alternatives

Any chance y'all could use that instead? I know several hosts have already implemented support for _from.

Thanks for the Android info!

danielfrohlich-npr commented 6 months ago

I can take it back to the team, we've appending that now for years so Im not sure when that standard was developed.

kookster commented 6 months ago

I believe @jamescridland suggested it some time ago, but I have no idea, probably around the time y'all were figuring this out too

johnspurlock commented 6 months ago

Thanks Daniel, just added the nprone_android case in https://github.com/opawg/user-agents-v2/commit/53332d9973416b6316c85ba2495863f3020b3d54

The other ones should already be covered