Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPR App now uses a different agent #15

Open
kookster opened this issue Dec 15, 2023 · 8 comments
Open

NPR App now uses a different agent #15

kookster opened this issue Dec 15, 2023 · 8 comments

Comments

@kookster
Copy link

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
Copy link
Contributor

Thanks - updated (and renamed) the NPR app record: f29095d

Happen to have an Android example?

@kookster
Copy link
Author

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

@jamescridland
Copy link
Contributor

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

@danielfrohlich-npr
Copy link

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

  • User agents that contain nprone_android/#.#.#/OSv:##. The user agent string will likely begin with Dalvik, such as Dalvik/2.1.0 (Linux; U; Android 13; SM-G991U Build/TP1A.220624.014) nprone_android/3.7.0/OSv:13
  • User agents that start with NPROneAndroid. This is being used for the audio player framework, so for files streamed on-demand

@kookster
Copy link
Author

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
Copy link

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
Copy link
Author

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
Copy link
Contributor

Thanks Daniel, just added the nprone_android case in 53332d9

The other ones should already be covered

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants
@kookster @jamescridland @johnspurlock @danielfrohlich-npr and others