Skip to content

Set UA as Apple Podcast in makeQuery #310

Open
cucco-io wants to merge 2 commits into
akhilrex:masterfrom
cucco-io:update-ua
Open

Set UA as Apple Podcast in makeQuery #310
cucco-io wants to merge 2 commits into
akhilrex:masterfrom
cucco-io:update-ua

Conversation

@cucco-io

Copy link
Copy Markdown

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 <zhenyu.jason@gmail.com>
@voltagex

voltagex commented Nov 9, 2025

Copy link
Copy Markdown

I wonder if it's worth adding a list of domains that behave this way rather than always pretending to be a (now outdated) version of Apple Podcasts

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.

2 participants