✅ solved | Activating op3 doesn't change the <enclosure url> properly

I activated the module “External Analytics” and entered https://op3.dev/e/ as th analytics prefix.

But my <enclosure url="...download-url..." /> doesn’t change.

This is the feed, that I’m working with: letztens.de

Question:
What do I need to change/edit, so the enclosure url in the feed also gets replaced for each episode?

Sidenote
I added the transcript files in my feed with some custom code and surprisingly those urls get replaced.

code in my functions.php
function add_podcast_transcript_to_feed() {
	$episode = \Podlove\get_episode();
	
	// Transkript in Feed rendern
    if ($episode->file('srt')) {
		echo '<podcast:transcript url="' . $episode->file('srt')->publicUrl('feed') . '" type="application/x-subrip" rel="captions" />';
		//echo '<podcast:transcript url="' . $episode->file('srt')->url() . '" type="application/x-subrip" rel="captions" />';
    }
    if ($episode->file('plaintext')) {
		echo '<podcast:transcript url="' . $episode->file('plaintext')->publicUrl('feed') . '" type="text/plain" />';
		//echo '<podcast:transcript url="' . $episode->file('plaintext')->url() . '" type="text/plain" />';
    }

	// Link zu Kommentaren (Social Interact) in Feed rendern
	echo '<podcast:socialInteract uri="' . $episode->url() . '#kommentare" priority="1" platform="wordpress" protocol="activitypub" pubDate="" />';
}
add_action('rss2_item', 'add_podcast_transcript_to_feed');

Ok, nevermind - I think this was a caching problem. Now the enclosure gets replaced properly.

1 Like