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.phprelevant apps could get apredefined_urlwhich has placeholders forrss_feedandtitle - The
getPlatformsmethod inmodules\Platforms\Models\PlatformModel.phpcould be adapted to getpredefined_url - The
getPodcastingPlatformsmethod inapp\Entities\Podcast.phpcould processpredefined_urlif 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