Skip to content

Disable editing and pre-fill 'podcasting app' field for AntennaPod

Is your feature request related to a problem? Please describe

Podcasters don't seem to be correctly setting the URLs to open their podcast in a given app. For example, https://podcast.thelinuxexp.com/@tlenewspodcast has the AntennaPod link set to its Podcast Index entry, where the link should be https://antennapod.org/deeplink/subscribe?url=https://podcast.thelinuxexp.com/@tlenewspodcast/feed.xml&title=Linux%20%26%20Open%20Source%20News instead.

Describe the solution you'd like

For each directory listed fill out the link to your podcast in a specific directory and the ID.

For apps where this is possible, like AntennaPod, disable the editing of the field and populate it with the needed URL instead.

On a technical level (I explored the code a bit with the help of Copilot, but I'm not a developer so I cannot judge if this makes any sense for Castopod or in general):

  • In modules\Platforms\Platforms.php relevant apps could get a predefined_url which has placeholders for rss_feed and title
  • The getPlatforms method in modules\Platforms\Models\PlatformModel.php could be adapted to get predefined_url
  • The getPodcastingPlatforms method in app\Entities\Podcast.php could process predefined_url if the podcast has one and replace the defined parameters by their actual (URL-encoded) values

Current values of the podcast URL (provided by users) could be kept in or deleted from the database for a apps with a predefined URL (provided in Castopod code).

Describe alternatives you've considered

Changing AntennaPod's submit_url from https://antennapod.org/documentation/podcasters-hosters/add-on-antennapod to https://antennapod.org/documentation/podcasters-hosters/add-on-antennapod so podcasters quickly see that they can enter their URL. The downside is that they then cannot find the relevant information about how to get their podcast enlisted in search, and they'd still need to do some copy-pasting (rather than with the proposed solution data being filled automatically).

Additional context

n/a

Edited by Keunes