Skip to content

Feeds not updated when base-url changes

I have noticed that neitehr feed-archive update nor feed-archive relink seems to change the enclosure local URLs when the base-url configuration changes. This can be somewhat annoying to correct because feeds have a lot of different file extensions (e.g. feed.rss, podcast.xml, podcast_id=134435?format=rss), so it's a bit difficult to write a simple command that searches through the whole archive and deletes the feeds.

Here is an MWE configuration:

defaults:
  base-url: "https://localhost/"
feeds:
  - title: "Test podcast"
    remote-url: "https://pganssle.github.io/test-podcast/podcast.rss"

When I run feed-archive update on this, it generates https/pganssle.github.io/test-podcast/podcast.rss, which contains links like https://localhost/https/.... If you then realize that you don't have an HTTPS cert for localhost, and you also meant to host it on :8080, so you change the config to this:

defaults:
  base-url: "http://localhost:8080/"
feeds:
  - title: "Test podcast"
    remote-url: "https://pganssle.github.io/test-podcast/podcast.rss"

Running feed-archiver update or feed-archiver relink makes no change to the archive.