Hi @lowellwashere25,
Thank you for bringing this to our attention. It looks like our latest version doesn’t support the latest PowerPress version. We’ll fix it in the following plugin releases.
Meanwhile, could you please try to put the following code in your functions.php
file?
function ssp_get_file_url_by_enclosure( $episode_id ){
$file = get_post_meta( $episode_id, 'enclosure', true );
if ( is_string( $file ) && preg_match('/\s/',$file) ) {
$file = preg_split( '/\s/', $file );
$file = isset( $file[0] ) ? $file[0] : '';
}
return $file;
}
add_filter( 'default_post_metadata', function ( $value, $object_id, $meta_key ) {
if( 'audio_file' !== $meta_key || $value ){
return $value;
}
return ssp_get_file_url_by_enclosure( $object_id );
}, 10, 3 );
add_filter( 'ssp_episode_enclosure', function ( $file, $episode_id ) {
return $file ?: ssp_get_file_url_by_enclosure( $episode_id );
}, 10, 2 );
Best regards,
Sergiy.