Hello @digitalcardinal!
It looks like you just set up all the episodes on your local site, and then just copied the database. If it’s true, then the database uses the wrong audio file URL paths (from your local site, and of course they can’t be reached from the outside world). For example, the wrong path is https://localsite.loc/uploads/2022/10/episode.mp3, and the correct path should be https://mysite.com/uploads/2022/10/episode.mp3.
How to fix it?
The easiest way is to just manually edit the file path on each episode, or to re-upload the audio files (it’s the best variant if there is a few episodes and you don’t have development experience).
If there’re a lot of episodes and you do have development experience (or developer), you can use the WP CLI search-replace tool – https://developer.ww.wp.xz.cn/cli/commands/search-replace/.
Hope this helps and best regards,
Sergiy, development team.
Hi @digitalcardinal
To expand on what Sergiy said… are you referring to the passthrough URLs the Seriously Simple Podcasting uses to access the local media file? It sounds like this may be the issue since your references directories that don’t actually exist (ie: podcast-download)
If you use nginx on the server, you’ll need to add some NGINX bypass rules to your site’s configuration in order for the passthrough URLs to work.
# Seriously Simple Podcasting
rewrite podcast-download/([^/]+)/([^/]*)/? /index.php?podcast_episode=$1 break;
rewrite podcast-player/([^/]+)/([^/]*)/? /index.php?podcast_episode=$1&podcast_ref=player break;
Additionally, if you really want to bypass the passthrough URLs, you can do so by adding the following to your functions.php file:
add_filter( 'ssp_episode_download_link', 'ssp_use_raw_audio_file_url', 10, 3 );
function ssp_use_raw_audio_file_url ( $url, $episode_id, $file ) {
return $file;
}
Keep in mind that Seriously Simple Stats (our add-on plugin) will not work if you disable the passthrough URLs. So just a heads up if you plan on using that plugin alongside Seriously Simple Podcasting.
I hope this additional information might help but if you need any further assistance, please let us know. 🙂
Thanks!
That filter is EXACTLY what I needed! Player working now. Thanks so much!
@digitalcardinal
We are happy you could find a way to fix it.
Have a good day and happy podcasting!
Hi guys,
Ok i found now a element which might effect also my server why it is not working
However i dont have access to the config of my nginx server
the settings
# Seriously Simple Podcasting
rewrite podcast-download/([^/]+)/([^/]*)/? /index.php?podcast_episode=$1 break;
rewrite podcast-player/([^/]+)/([^/]*)/? /index.php?podcast_episode=$1&podcast_ref=player break;
could this be done also in the .htaccess?
thank you
Dieter
Hi @dhovorka
I think it’s better to ask your hosting provider, or your developer for such things.