Skip to content

Set UA as Apple Podcast in makeQuery #310

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

cucco-io
Copy link

Some podcasts return HTML content when accessing the RSS URL through a browser, but return XML content when accessed via a podcast app. This behavior is often controlled by detecting the User-Agent (UA) string. For example, the feed at https://feeds.buzzsprout.com/1982525.rss behaves this way.

This PR updates the makeQuery function to set the User-Agent string to that of the Apple Podcast app, ensuring that the feed returns XML content when accessed by the podcast app.

crmorton added a commit to crmorton/podgrab that referenced this pull request May 22, 2025
* Update UA

* Add Apple Podcast UA

---------

Co-authored-by: Jason Qu <[email protected]>
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

Successfully merging this pull request may close these issues.

1 participant